Struct screeps::objects::StructurePowerBank
[−]
[src]
pub struct StructurePowerBank(_);
Trait Implementations
impl Clone for StructurePowerBank
[src]
fn clone(&self) -> StructurePowerBank
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl AsRef<Reference> for StructurePowerBank
[src]
impl From<StructurePowerBank> for Reference
[src]
fn from(wrapper: StructurePowerBank) -> Reference
[src]
Performs the conversion.
impl TryFrom<Value> for StructurePowerBank
[src]
type Error = <Value as TryInto<Reference>>::Error
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<StructurePowerBank, Self::Error>
[src]
Performs the conversion.
impl RoomObjectProperties for StructurePowerBank
[src]
impl StructureProperties for StructurePowerBank
[src]
fn hits(&self) -> i32
[src]
fn hits_max(&self) -> i32
[src]
fn id(&self) -> String
[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