From dabedf442d65fcaec36d0a30ed3ed2327b39a44d Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Tue, 13 Aug 2019 22:00:10 +0200 Subject: Trimming down on redundant code and tweaking perf --- src/game/player.rs | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/game/player.rs') diff --git a/src/game/player.rs b/src/game/player.rs index 8b63f9f..3d86c6d 100644 --- a/src/game/player.rs +++ b/src/game/player.rs @@ -14,8 +14,6 @@ pub struct Worm { pub id: i32, pub health: i32, pub position: Point2d, - pub weapon_damage: i32, - pub weapon_range: u8, pub bombs: u8, pub snowballs: u8, pub rounds_until_unfrozen: u8, @@ -113,8 +111,6 @@ mod test { id: 1, health: 50, position: Point2d::new(0, 0), - weapon_damage: 5, - weapon_range: 5, rounds_until_unfrozen: 0, bombs: 0, snowballs: 0, @@ -123,8 +119,6 @@ mod test { id: 2, health: 10, position: Point2d::new(0, 0), - weapon_damage: 5, - weapon_range: 5, rounds_until_unfrozen: 0, bombs: 0, snowballs: 0, @@ -133,8 +127,6 @@ mod test { id: 3, health: -2, position: Point2d::new(0, 0), - weapon_damage: 5, - weapon_range: 5, rounds_until_unfrozen: 0, bombs: 0, snowballs: 0, @@ -162,8 +154,6 @@ mod test { id: 1, health: 0, position: Point2d::new(0, 0), - weapon_damage: 5, - weapon_range: 5, rounds_until_unfrozen: 0, bombs: 0, snowballs: 0, @@ -172,8 +162,6 @@ mod test { id: 2, health: 10, position: Point2d::new(0, 0), - weapon_damage: 5, - weapon_range: 5, rounds_until_unfrozen: 0, bombs: 0, snowballs: 0, @@ -182,8 +170,6 @@ mod test { id: 3, health: 2, position: Point2d::new(0, 0), - weapon_damage: 5, - weapon_range: 5, rounds_until_unfrozen: 0, bombs: 0, snowballs: 0, @@ -211,8 +197,6 @@ mod test { id: 1, health: 0, position: Point2d::new(0, 0), - weapon_damage: 5, - weapon_range: 5, rounds_until_unfrozen: 0, bombs: 0, snowballs: 0, @@ -221,8 +205,6 @@ mod test { id: 2, health: 10, position: Point2d::new(0, 0), - weapon_damage: 5, - weapon_range: 5, rounds_until_unfrozen: 0, bombs: 0, snowballs: 0, @@ -231,8 +213,6 @@ mod test { id: 3, health: 2, position: Point2d::new(0, 0), - weapon_damage: 5, - weapon_range: 5, rounds_until_unfrozen: 0, bombs: 0, snowballs: 0, @@ -260,8 +240,6 @@ mod test { id: 1, health: -10, position: Point2d::new(0, 0), - weapon_damage: 5, - weapon_range: 5, rounds_until_unfrozen: 0, bombs: 0, snowballs: 0, -- cgit v1.2.3