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

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

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

Loading content...

Implementors

impl HasPosition for RoomPosition[src]

impl HasPosition for LocalRoomPosition[src]

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

All RoomObjects have positions.

Loading content...