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
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§
impl Copy for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more