Enum rust_warrior::actions::Action [−][src]
pub enum Action {
Walk(Direction),
Attack(Direction),
Rest,
Rescue(Direction),
Pivot(Direction),
Shoot(Direction),
}Expand description
Certain Warrior methods correlate to
an Action. Each turn only one action can be taken. If an action
is not successful, then the turn is wasted!
Variants
Walk(Direction)walk forward one tile
Attack(Direction)attack an enemy unit one tile away
rest to regain 10% HP
Rescue(Direction)rescue a captive one tile away
Pivot(Direction)rotate 180 degrees
Shoot(Direction)fire an arrow up to three tiles
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Action
impl UnwindSafe for Action
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more