summaryrefslogtreecommitdiff
path: root/src/engine/command.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-05-12 17:39:06 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-05-12 17:39:06 +0200
commit97880f6a368085e9a409f1fb0030791a4a65005c (patch)
tree85190874620d136a4797bd0d4571de6fce9859b9 /src/engine/command.rs
parentf43fa101538c6b4ae2531bb8d27c793e6b7579ec (diff)
Initial stab at monte carlo implementation
Doesn't seem to be working quite right... just sits there accumulating energy.
Diffstat (limited to 'src/engine/command.rs')
-rw-r--r--src/engine/command.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/engine/command.rs b/src/engine/command.rs
index b5cf528..c2edb81 100644
--- a/src/engine/command.rs
+++ b/src/engine/command.rs
@@ -23,3 +23,10 @@ pub enum BuildingType {
Attack = 1,
Energy = 2,
}
+
+impl BuildingType {
+ pub fn all() -> [BuildingType; 3] {
+ use self::BuildingType::*;
+ [Defence, Attack, Energy]
+ }
+}