Bare minimum with renderer
This commit is contained in:
@@ -7,6 +7,7 @@ pub enum State {
|
||||
Dead,
|
||||
Immune,
|
||||
}
|
||||
#[derive(Clone)]
|
||||
pub struct Human {
|
||||
pub present_state : State,
|
||||
pub x : i32,
|
||||
@@ -20,4 +21,11 @@ impl Human{
|
||||
y : pos_y
|
||||
}
|
||||
}
|
||||
pub fn new_empty() -> Self{
|
||||
Self{
|
||||
present_state:State::Normal,
|
||||
x : 0,
|
||||
y : 0,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user