diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-08-31 22:23:02 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-08-31 22:23:02 +0200 |
commit | 6f2f6ce1e5d53a2344a26862eb05e4e12bfabe1a (patch) | |
tree | ba21e33fa137c987a8489e30bbadba38d0b157bf /src/engine/command.rs | |
parent | 82230e9f67dbebb3a0a608a53bca05aa38a5f501 (diff) |
Most of the heuristic random move lookup structure
Diffstat (limited to 'src/engine/command.rs')
-rw-r--r-- | src/engine/command.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/command.rs b/src/engine/command.rs index 764e3cb..b34553f 100644 --- a/src/engine/command.rs +++ b/src/engine/command.rs @@ -42,7 +42,7 @@ pub enum BuildingType { } impl BuildingType { - pub fn all() -> [BuildingType; 4] { + pub fn all() -> [BuildingType; NUMBER_OF_BUILDING_TYPES] { use self::BuildingType::*; [Defence, Attack, Energy, Tesla] } |