File: yourcreature.cpp

package info (click to toggle)
matrem 1.0-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 788 kB
  • ctags: 928
  • sloc: cpp: 3,136; makefile: 77
file content (30 lines) | stat: -rw-r--r-- 349 bytes parent folder | download | duplicates (3)
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 "yourcreature.h"

yourcreature::yourcreature(yourcreature *parent) : creature(parent)
{
  species=YOURCREATURE;
  hitpoints=100;
  power=100;
  health=100;
  speed=100;
  diet=atdiet[GRASS];
  terrain=atterrain[VOID];
  preparecreature(parent);
}  

void yourcreature::choosejob()
{
  job=SLEEP;
}