summaryrefslogtreecommitdiff
path: root/src/character.rs
diff options
context:
space:
mode:
authorTom Barrett <tombarrett@siu.edu>2017-11-24 07:34:07 -0600
committerTom Barrett <tombarrett@siu.edu>2017-11-24 07:34:07 -0600
commit86ddbbd163377bf8f50462e84d7dc6204c812367 (patch)
treee729fb49dd82098eb66d5427c87f3defbc372f36 /src/character.rs
parent6b152d1b551353ae58f38b046596eb8d0418f39b (diff)
-made men not public, made path just given
Diffstat (limited to 'src/character.rs')
-rw-r--r--src/character.rs11
1 files changed, 1 insertions, 10 deletions
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<Vec<Location>>) {
- 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) {