Eliminated some problems resulting from last merge
[openstranded.git] / src / entity.hh
blob8f4f4bafc72f3045f7fd7603c9b9bf5ef630af6f
1 /*
2 * This file includes the base class definition for individual entities
4 * Copyright (C) 2008 Hermann Walth
6 * This file is part of OpenStranded
8 * OpenStranded is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
13 * OpenStranded is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with OpenStranded. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef STRANDED_ENTITY_HH
23 #define STRANDED_ENTITY_HH
25 #include <string>
27 typedef unsigned int ID;
31 * An entity is a single, independent piece on the map.
32 * It belongs to a "kingdom" which defines its most basic properties
33 * (e.g. collectable, controllable...) and a "type" which is
34 * a kind of prototype for differerent entities defining whether
35 * the entity is e.g. a wooden hut, or a bamboo hut, or a tree or
36 * whatever
38 class Entity
40 private:
41 ID typeID;
43 public:
45 * The actual constructor, with the entity's type as argument
47 Entity (ID type);
49 virtual
50 ~Entity () {};
53 #endif /* STRANDED_ENTITY_HH */