/// </summary>\r
public class SaberMonster : IMonster\r
{\r
+ //starting health\r
+ int health = 100;\r
/// <summary>\r
/// Construct this type of monster. This constructor is called\r
/// by the map when the game requests entities.\r
/// </summary>\r
public int Health\r
{\r
- //TODO do this right\r
- get { return 0; }\r
- //get { throw new NotImplementedException(); }\r
+ get { return this.health; }\r
+ \r
}\r
\r
/// <summary>\r
/// <param name="amount"></param>\r
public void causeDamageTo(int amount)\r
{\r
- //TODO do this right\r
- //throw new NotImplementedException();\r
+ this.health -= amount;\r
}\r
\r
/// <summary>\r