-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentity.h
More file actions
30 lines (28 loc) · 789 Bytes
/
entity.h
File metadata and controls
30 lines (28 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
*
*/
#include <string>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <sys/types.h>
using namespace std;
class Entity {
public:
Entity();
~Entity();
unsigned char level();
unsigned char serendipity();
unsigned char might();
unsigned char intelligence();
unsigned char grace();
unsigned char heart(); // Must make Captain Planet and Willard Wright jokes at some point!!!
unsigned char tenacity();
unsigned char tick(); // Decrement actframes, and prompt for new action if action lock is over
unsigned char act(int argc,char** args);
unsigned char print();
private:
unsigned char level,serendipity,might,intelligence,grace,heart,tenacity;
short actframes; // The counter for how many "frames" of action lock are active
char* name;
};