From 0e5687836fc71d3a087e27dac673ca050d99a195 Mon Sep 17 00:00:00 2001 From: Guillaume Pasquet Date: Sun, 15 Mar 2020 12:39:29 +0000 Subject: Resolve old fog-of-war version --- src/state.rs | 9 +-------- 1 file changed, 1 insertion(+), 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); - } } -- cgit v1.2.3