Struct screeps::objects::Room
[−]
[src]
pub struct Room(_);
Methods
impl Room
[src]
pub fn controller(&self) -> Option<StructureController>
[src]
pub fn energy_available(&self) -> i32
[src]
pub fn energy_capacity_available(&self) -> i32
[src]
pub fn name(&self) -> String
[src]
pub fn storage(&self) -> Option<StructureStorage>
[src]
pub fn terminal(&self) -> Option<StructureTerminal>
[src]
impl Room
[src]
pub fn create_construction_site<T>(
&self,
at: T,
ty: StructureType
) -> ReturnCode where
T: HasPosition,
[src]
&self,
at: T,
ty: StructureType
) -> ReturnCode where
T: HasPosition,
pub fn create_named_construction_site<T>(
&self,
at: T,
ty: StructureType,
name: &str
) -> ReturnCode where
T: HasPosition,
[src]
&self,
at: T,
ty: StructureType,
name: &str
) -> ReturnCode where
T: HasPosition,
pub fn create_flag<T>(
&self,
at: T,
name: &str,
main_color: Color,
secondary_color: Color
) -> ReturnCode where
T: HasPosition,
[src]
&self,
at: T,
name: &str,
main_color: Color,
secondary_color: Color
) -> ReturnCode where
T: HasPosition,
pub fn find<T>(&self, ty: T) -> Vec<T::Item> where
T: FindConstant,
[src]
T: FindConstant,
pub fn look_for_at<T, U>(&self, ty: T, target: U) -> Vec<T::Item> where
T: LookConstant,
U: HasPosition,
[src]
T: LookConstant,
U: HasPosition,
pub fn name_local(&self) -> LocalRoomName
[src]
Trait Implementations
impl Clone for Room
[src]
fn clone(&self) -> Room
[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