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
Wall
Enemy
Gold
Sword
Goal
Empty
Trait Implementations
impl PartialEq for Object
[src]
fn eq(&self, __arg_0: &Object) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Object
[src]
impl Hash for Object
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for Object
[src]
fn clone(&self) -> Object
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more