Move works again

This commit is contained in:
2023-12-05 19:33:19 +01:00
parent 21a292b7ad
commit 6aee9d974f
6 changed files with 391 additions and 12 deletions

View File

@@ -28,9 +28,15 @@ impl Player {
pub fn get_life(&self) -> i16 {
self.life
}
pub fn get_max_life(&self) -> i16 {
self.max_life
}
pub fn get_position(&mut self) -> &mut Position {
&mut self.position
}
pub fn get_immutable_position(&self) -> &Position {
&self.position
}
/// add the given amount to the players gold stash
pub fn retrieve_gold(&mut self, amount: usize) { self.gold += amount }