[][src]Trait screeps::objects::HasPosition

pub trait HasPosition {
    fn pos(&self) -> Position;
}

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) -> Position

Loading content...

Implementors

impl HasPosition for Position[src]

impl<T> HasPosition for T where
    T: RoomObjectProperties
[src]

All RoomObjects have positions.

Loading content...