diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-05-13 19:09:26 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-05-13 19:09:26 +0200 |
commit | dd78789f242814bc750d886cc2d0c8f0877ade7c (patch) | |
tree | 049e9f24ec0b00c585fb21033525adb168b39405 /src | |
parent | 02256124fbd57d88effd02c046093ecaf73b77e3 (diff) |
Added initial benchmarks
There's a lot of room for improvement here. Specifically, I should
separate the internal representation from the test interface. Have it
provide functionality for creating random valid states.
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/mod.rs b/src/engine/mod.rs index 41acb23..7b6db30 100644 --- a/src/engine/mod.rs +++ b/src/engine/mod.rs @@ -240,7 +240,7 @@ impl Player { } impl Building { - fn new(pos: Point, blueprint: &BuildingSettings) -> Building { + pub fn new(pos: Point, blueprint: &BuildingSettings) -> Building { Building { pos: pos, health: blueprint.health, |