From d5165efe843b7a1543f425087703266fd09501f4 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Wed, 16 May 2018 22:47:17 +0200 Subject: Changed types to assume health can't be more than the hundred in the first round --- src/engine/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/engine/mod.rs') diff --git a/src/engine/mod.rs b/src/engine/mod.rs index 6bc200c..b03eda1 100644 --- a/src/engine/mod.rs +++ b/src/engine/mod.rs @@ -33,15 +33,15 @@ pub enum GameStatus { #[derive(Debug, Clone, PartialEq)] pub struct Player { pub energy: u16, - pub health: u16 + pub health: u8 } #[derive(Debug, Clone, PartialEq)] pub struct Building { pub pos: Point, - pub health: u16, + pub health: u8, pub construction_time_left: u8, - pub weapon_damage: u16, + pub weapon_damage: u8, pub weapon_speed: u8, pub weapon_cooldown_time_left: u8, pub weapon_cooldown_period: u8, @@ -51,7 +51,7 @@ pub struct Building { #[derive(Debug, Clone, PartialEq)] pub struct Missile { pub pos: Point, - pub damage: u16, + pub damage: u8, pub speed: u8, } -- cgit v1.2.3