Enum roguelike::Object [] [src]

pub enum Object {
    Wall,
    Enemy,
    Gold,
    Sword,
    Goal,
    Empty,
}

Object representing things on the map. An enemy needs to be hit twice in a row unless you have a sword, in which case they only need to be hit once in order to die. Gold is just extra points and takes no effort to pick up and reaching the goal finishes the game regardless of how many enemies you've killed.

Variants

Trait Implementations

impl PartialEq for Object
[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 Object
[src]

impl Hash for Object
[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 Object
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Object
[src]

impl Display for Object
[src]

Formats the value using the given formatter. Read more