ccdevnet / openc2e

openc2e

This URL has Read+Write access

openc2e / Creature.h
100644 38 lines (32 sloc) 1.003 kb
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
31
32
33
34
35
36
37
38
/*
* Creature.h
* openc2e
*
* Created by Alyssa Milburn on Tue May 25 2004.
* Copyright (c) 2004 Alyssa Milburn. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*/
 
#include "Agent.h"
 
class Creature : public Agent {
protected:
// biochemistry
float chemicals[256];
 
// non-specific bits
unsigned int variant;
bool female;
class genomeFile *genome;
bool alive;
 
public:
Creature(genomeFile *g, unsigned char _family, bool is_female, unsigned char _variant);
};
 
/* vim: set noet: */