From e9d15e51944eb945665e7f955184c484a3df8552 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 26 Apr 2010 01:34:19 +0000 Subject: [PATCH] Monster has health now. git-svn-id: https://bd85.net/svn/cs3505_group@147 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- CarFire/CarFire/CarFire/SaberMonster.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CarFire/CarFire/CarFire/SaberMonster.cs b/CarFire/CarFire/CarFire/SaberMonster.cs index 91d82a0..2d711a4 100644 --- a/CarFire/CarFire/CarFire/SaberMonster.cs +++ b/CarFire/CarFire/CarFire/SaberMonster.cs @@ -28,6 +28,8 @@ namespace CarFire /// public class SaberMonster : IMonster { + //starting health + int health = 100; /// /// Construct this type of monster. This constructor is called /// by the map when the game requests entities. @@ -196,9 +198,8 @@ namespace CarFire /// public int Health { - //TODO do this right - get { return 0; } - //get { throw new NotImplementedException(); } + get { return this.health; } + } /// @@ -207,8 +208,7 @@ namespace CarFire /// public void causeDamageTo(int amount) { - //TODO do this right - //throw new NotImplementedException(); + this.health -= amount; } /// -- 2.45.2