Struct sc2::observer::Observation[][src]

pub struct Observation { /* fields omitted */ }

State of the game (changes every frame).

Methods

impl Observation
[src]

The player id associated with the participant.

The previous game step.

The current game step.

Position of the center of the camera.

A list of all known units at the moment.

All power sources associated with the current player.

All active effects in vision of the current player.

All upgrades.

Current mineral count.

Current vespene count.

The total supply cap given the players max supply.

The total supply used by the player.

The total supply consumed by army units alone.

The total supply consumed by workers alone.

The number of workers that currently have no orders.

The number of army units.

The number of warp gates owned by the player.

The number of larva owned by the player.

Creep image (sample pixels to find tiles with creep).

Visibility image (sample pixels to find visible tiles).

Detailed current set of scores.

Filter all units based on a custom condition.

Check if the given point contains creep.

Get the visibility of the given point for the current player.

Trait Implementations

impl Debug for Observation
[src]

Formats the value using the given formatter. Read more

impl Clone for Observation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Observation

impl !Sync for Observation