[−][src]Trait screeps::objects::HasPosition
Trait for things which have positions in the Screeps world.
This can be freely implemented for anything with a way to get a position.
Required methods
fn pos(&self) -> RoomPosition
Implementors
impl HasPosition for RoomPosition
[src]
fn pos(&self) -> RoomPosition
[src]
impl HasPosition for LocalRoomPosition
[src]
fn pos(&self) -> RoomPosition
[src]
impl<T> HasPosition for T where
T: RoomObjectProperties,
[src]
T: RoomObjectProperties,
All RoomObject
s have positions.