Struct sc2::Observation [] [src]

pub struct Observation { /* fields omitted */ }

state of the game (changes every frame)

Methods

impl Observation
[src]

[src]

the player id associated with the participant

[src]

the previous game step

[src]

the current game step

[src]

position of the center of the camera

[src]

a list of all known units at the moment

[src]

all power sources associated with the current player

[src]

all active effects in vision of the current player

[src]

all upgrades

[src]

current mineral count

[src]

current vespene count

[src]

the total supply cap given the players max supply

[src]

the total supply used by the player

[src]

the total supply consumed by army units alone

[src]

the total supply consumed by workers alone

[src]

the number of workers that currently have no orders

[src]

the number of army units

[src]

the number of warp gates owned by the player

[src]

the number of larva owned by the player

[src]

creep image (sample pixels to find tiles with creep)

[src]

visibility image (sample pixels to find visible tiles)

[src]

detailed current set of scores

[src]

filter all units based on a custom condition

[src]

check if the given point contains creep

[src]

get the visibility of the given point for the current player

Trait Implementations

impl Debug for Observation
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Observation
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Observation

impl !Sync for Observation