summaryrefslogtreecommitdiff
path: root/src/input/json.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-07-01 22:39:44 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-07-01 22:39:44 +0200
commit99378ed484b04c710e0307db93ada65b29d93bae (patch)
tree860636d6e7be6bf5208f2f865a68e1289bd8272a /src/input/json.rs
parent709bd0b9be0eeed4ad204c121fcadef505d5336d (diff)
Started filling in bitwise simulation logic
Diffstat (limited to 'src/input/json.rs')
-rw-r--r--src/input/json.rs13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/input/json.rs b/src/input/json.rs
index b509926..13f0b5e 100644
--- a/src/input/json.rs
+++ b/src/input/json.rs
@@ -244,18 +244,7 @@ impl State {
)
.collect()
}
-
- fn unconstructed_buildings_to_bitwise_engine(&self, player_type: char) -> Vec<bitwise_engine::UnconstructedBuilding> {
- self.game_map.iter()
- .flat_map(|row| row.iter()
- .flat_map(|cell| cell.buildings.iter()
- .filter(|b| b.player_type == player_type && b.construction_time_left >= 0)
- .map(|b| b.to_bitwise_engine_unconstructed())
- )
- )
- .collect()
- }
-
+
fn buildings_to_expressive_engine(&self, player_type: char) -> Vec<expressive_engine::Building> {
self.game_map.iter()
.flat_map(|row| row.iter()