From 86ddbbd163377bf8f50462e84d7dc6204c812367 Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Fri, 24 Nov 2017 07:34:07 -0600 Subject: -made men not public, made path just given --- src/character.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/character.rs') diff --git a/src/character.rs b/src/character.rs index 6a71d4c..421ede4 100644 --- a/src/character.rs +++ b/src/character.rs @@ -1,7 +1,6 @@ extern crate rand; use character::rand::Rng; - use constants::Orders; use location::Location; @@ -70,15 +69,7 @@ impl Character { } pub fn give_path(&mut self, path : Option>) { - match path { - Some(path) => { - self.path = Some(path); - }, - None => { - self.path = None; - self.order = Orders::Wander as u8; - }, - } + self.path = path; } pub fn give_destination(&mut self, destination : Location) { -- cgit v1.2.3