[][src]Struct screeps_api::websocket::objects::CreepActions

pub struct CreepActions {
    pub harvest: Option<ActionLogTarget>,
    pub build: Option<ActionLogTarget>,
    pub repair: Option<ActionLogTarget>,
    pub attack: Option<ActionLogTarget>,
    pub heal: Option<ActionLogTarget>,
    pub ranged_attack: Option<ActionLogTarget>,
    pub ranged_heal: Option<ActionLogTarget>,
    pub ranged_mass_attack: Option<ActionLogTarget>,
    pub reserve_controller: Option<ActionLogTarget>,
    pub upgrade_controller: Option<ActionLogTarget>,
    pub attacked: Option<ActionLogTarget>,
    pub healed: Option<ActionLogTarget>,
    pub say: Option<CreepMessage>,
}

A struct describing a creep's actions.

Fields

harvest: Option<ActionLogTarget>

The location this creep harvested last tick.

build: Option<ActionLogTarget>

The location this creep built to last tick.

repair: Option<ActionLogTarget>

The location this creep repaired last tick.

attack: Option<ActionLogTarget>

The location this creep attacked last tick.

heal: Option<ActionLogTarget>

The location this creep healed last tick.

ranged_attack: Option<ActionLogTarget>

The location this creep range-attacked last tick.

ranged_heal: Option<ActionLogTarget>

The location this creep range-healed last tick.

ranged_mass_attack: Option<ActionLogTarget>

If present, this creep made a ranged mass attack last tick.

reserve_controller: Option<ActionLogTarget>

The location of the controller this creep reserved last tick.

upgrade_controller: Option<ActionLogTarget>

The location of the controller this creep upgraded last tick.

attacked: Option<ActionLogTarget>

The location this creep was attacked from last tick.

healed: Option<ActionLogTarget>

The location this creep was healed from last tick.

say: Option<CreepMessage>

The message this creep said last tick. TODO: confirm this is correct.

Methods

impl CreepActions[src]

pub fn update(&mut self, update: CreepActionsUpdate)[src]

Updates this structure with all values present in the given update.

Trait Implementations

impl Default for CreepActions[src]

impl PartialEq<CreepActions> for CreepActions[src]

impl Clone for CreepActions[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for CreepActions[src]

impl<'de> Deserialize<'de> for CreepActions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,