Enemy class. Written for OOP Review. Derived from life_entity.
Diff: enemy.h
- Revision:
- 0:91a68e5fd4b8
- Child:
- 1:59274d3772ec
diff -r 000000000000 -r 91a68e5fd4b8 enemy.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/enemy.h Thu Mar 31 19:55:30 2011 +0000 @@ -0,0 +1,30 @@ +#ifndef _ENEMYENTITY_ +#define _ENEMYENTITY_ + +#include "mbed.h" +#include "life_entity.h" +#include "player.h" + +#define DEBUG_ENEMY 0x01 +#define DEBUG_ENEMY_VERBOSE 0x00 + +class enemy : public life_entity +{ + +public: + + // Constructor + enemy(player *thePlayer); + + // Deconstructor + virtual ~enemy(); + + // Incoming damage + virtual void takeDamage(int roll); + + +protected: + +}; + +#endif \ No newline at end of file