Trait screeps::objects::HasPosition
source · pub trait HasPosition {
fn pos(&self) -> RoomPosition;
}
Expand description
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 LocalRoomPosition
impl HasPosition for RoomPosition
impl<T> HasPosition for Twhere
T: RoomObjectProperties,
All RoomObject
s have positions.