[][src]Struct screeps::objects::StructureSpawn

pub struct StructureSpawn(_);

Methods

impl StructureSpawn[src]

pub fn name(&self) -> String[src]

pub fn spawning(&self) -> Spawning[src]

impl StructureSpawn[src]

pub fn memory(&self) -> MemoryReference[src]

pub fn spawn_creep(&self, body: &[Part], name: &str) -> ReturnCode[src]

pub fn spawn_creep_with_options(
    &self,
    body: &[Part],
    name: &str,
    opts: &SpawnOptions
) -> ReturnCode
[src]

pub fn is_spawning(&self) -> bool[src]

pub fn recycle_creep(&self, target: &Creep) -> ReturnCode[src]

pub fn renew_creep(&self, target: &Creep) -> ReturnCode[src]

Trait Implementations

impl HasId for StructureSpawn[src]

fn id(&self) -> String[src]

impl RoomObjectProperties for StructureSpawn[src]

fn room(&self) -> Room[src]

impl StructureProperties for StructureSpawn[src]

fn structure_type(&self) -> StructureType[src]

fn destroy(&self) -> ReturnCode[src]

fn is_active(&self) -> bool[src]

fn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode[src]

Usable on either owned structures or neutral structures in owned rooms, returns ReturnCode::NotOwner otherwise. Read more

fn as_structure(self) -> Structure where
    Self: SizedRoomObject
[src]

impl OwnedStructureProperties for StructureSpawn[src]

fn my(&self) -> bool[src]

fn owner_name(&self) -> Option<String>[src]

fn as_owned_structure(self) -> OwnedStructure where
    Self: SizedRoomObject
[src]

impl CanStoreEnergy for StructureSpawn[src]

fn energy(&self) -> u32[src]

fn energy_capacity(&self) -> u32[src]

impl HasEnergyForSpawn for StructureSpawn[src]

impl Transferable for StructureSpawn[src]

impl Withdrawable for StructureSpawn[src]

impl Attackable for StructureSpawn[src]

fn hits(&self) -> u32[src]

fn hits_max(&self) -> u32[src]

impl FromExpectedType<Reference> for StructureSpawn[src]

impl Clone for StructureSpawn[src]

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

Performs copy-assignment from source. Read more

impl From<StructureSpawn> for Reference[src]

impl Eq for StructureSpawn[src]

impl PartialEq<StructureSpawn> for StructureSpawn[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl AsRef<Reference> for StructureSpawn[src]

impl TryFrom<StructureSpawn> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for StructureSpawn[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for StructureSpawn[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for StructureSpawn[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for StructureSpawn[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for StructureSpawn[src]

impl JsSerialize for StructureSpawn[src]

impl ReferenceType for StructureSpawn[src]

impl JsSerializeOwned for StructureSpawn[src]

impl<'_r> JsSerializeOwned for &'_r StructureSpawn[src]

Auto Trait Implementations

Blanket Implementations

impl<T> HasPosition for T where
    T: RoomObjectProperties
[src]

impl<T> SizedRoomObject for T where
    T: Into<Reference> + ReferenceType<Error = ConversionError, Error = ConversionError> + TryFrom<Value> + TryFrom<Reference> + RoomObjectProperties
[src]

impl<T> FromExpectedType for T where
    T: FromExpectedType<Reference>, 
[src]

impl<T, U> IntoExpectedType for T where
    U: FromExpectedType<T>, 
[src]

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.