Adonthell
0.4
character.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2000/2001 Kai Sterker <kai.sterker@gmail.com>
3
Part of the Adonthell Project <http://adonthell.nongnu.org>
4
5
Adonthell is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
Adonthell is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with Adonthell. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
20
/**
21
* @file character.h
22
* @author Kai Sterker <kai.sterker@gmail.com>
23
*
24
* @brief Declares the character class.
25
*
26
*
27
*/
28
29
30
#ifndef CHARACTER_H_
31
#define CHARACTER_H_
32
33
#include "
mapcharacter.h
"
34
35
/**
36
* Class holding %game characters.
37
*
38
*/
39
class
character
:
public
mapcharacter
40
{
41
public
:
42
/**
43
* Default constructor.
44
*
45
*/
46
character
();
47
48
/**
49
* Destructor.
50
*
51
*/
52
~character
();
53
};
54
55
#ifndef SWIG
56
57
namespace
data
58
{
59
/**
60
* All the game's characters, different from the player.
61
*
62
*/
63
extern
dictionary <character *>
characters;
64
65
/**
66
* The player character.
67
*
68
*/
69
extern
character
*the_player;
70
}
71
#endif
72
73
#endif // CHARACTER_H_
character::~character
~character()
Destructor.
Definition:
character.cc:38
data
Definition:
adonthell.h:235
character
Class holding game characters.
Definition:
character.h:39
dictionary
Stores objects of any kind.
Definition:
storage.h:231
character::character
character()
Default constructor.
Definition:
character.cc:34
mapcharacter
Representation of characters on a landmap.
Definition:
mapcharacter.h:139
mapcharacter.h
Declares the mapcharacter class.
src
character.h
Generated by
1.8.12