From dd78789f242814bc750d886cc2d0c8f0877ade7c Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sun, 13 May 2018 19:09:26 +0200 Subject: 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. --- src/engine/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3