Enum roguelike::Action [] [src]

pub enum Action {
    PickedSword(usizeusize),
    PickedGold(usizeusize),
    KilledEnemy(usizeusize),
    AttackedEnemy(usizeusize),
    Nothing,
    Won,
    WalkedIntoWall,
}

An Action represents something that happened, meta-data about the last move if you will. You could've picked something up, attacked or killed an enemy, walked into a wall or won. Nothing represents that you moved, but nothing happened, meaning you moved into an empty square.

Variants

Trait Implementations

impl PartialEq for Action
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Action
[src]

impl Hash for Action
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Action
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Action
[src]

Formats the value using the given formatter. Read more