/[anoncvs]/projects/roguelike/Character.h


UCC Code Repository

Contents of /projects/roguelike/Character.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Apr 15 15:02:52 2006 UTC (15 years ago) by banana
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
File MIME type: text/plain
Windows frontend finished (though it is rudimentary)

1 /*
2 * Character - the visible subset of a World
3 */
4 #pragma once
5
6 //Includes
7 #include <string>
8 #include "Entity.h"
9
10 //Class definition
11 class Character : public Entity {
12 protected:
13 //Stats
14 int bp, ap, hp;
15
16 //Inheritance constructor
17 Character();
18
19 public:
20 /** vv public for reasons of efficiency vv **/
21 unsigned long time;
22 int x, y;
23 /** ^^ public for reasons of efficiency ^^ **/
24
25 //Stat accessors
26 virtual int moveDelay() = 0;
27 virtual int attackDelay() = 0;
28
29 //Do whatever you want to do
30 virtual bool act() = 0;
31
32 virtual ~Character();
33 };

Managed by UCC Webmasters ViewVC Help
Powered by ViewVC 1.1.26