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

Implementors

All RoomObjects have positions.