Trait screeps::traits::Attackable
source · pub trait Attackable: HasHits + AsRef<RoomObject> { }
Expand description
Trait for all wrappers over Screeps JavaScript objects which can be the
target of Creep.attack
.
Contracts
The reference returned from AsRef<RoomObject>::as_ref
must be a valid
target for Creep.attack
.