aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Pasquet <dev@etenil.net>2020-03-15 12:39:29 +0000
committerGuillaume Pasquet <dev@etenil.net>2020-03-15 12:39:29 +0000
commit0e5687836fc71d3a087e27dac673ca050d99a195 (patch)
tree06117d2d172e5ca62fdc110c3547913580b9cd64
parent8c92d7c0aa1497e7d1a66cddcdacd04e43dba7f6 (diff)
Resolve old fog-of-war version
-rw-r--r--src/state.rs9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/state.rs b/src/state.rs
index 0badaf0..5e68d55 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -59,7 +59,7 @@ impl State {
}
}
- fn clear_los(&mut self) {
+ pub fn fog_of_war(&mut self) {
{
let grid = self.grid.as_mut().unwrap();
grid.clear_fog_of_war(self.player.location(), PLAYER_SIGHT);
@@ -135,11 +135,4 @@ impl State {
_ => Err(String::from("Not on stairs!")),
}
}
-
- pub fn fog_of_war(&mut self) {
- self.grid
- .as_mut()
- .unwrap()
- .clear_fog_of_war(self.player.location(), PLAYER_SIGHT);
- }
}