Trait screeps::objects::StructureProperties [] [src]

pub unsafe trait StructureProperties: RoomObjectProperties {
    fn hits(&self) -> i32 { ... }
fn hits_max(&self) -> i32 { ... }
fn id(&self) -> String { ... }
fn structure_type(&self) -> StructureType { ... }
fn destroy(&self) -> ReturnCode { ... }
fn is_active(&self) -> bool { ... }
fn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode { ... }
fn as_structure(self) -> Structure { ... } }

Provided Methods

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

Implementors