Adonthell  0.4
character.h
Go to the documentation of this file.
1 /*
2  $Id: character.h,v 1.25 2003/02/23 23:14:34 ksterker Exp $
3 
4  Copyright (C) 2000/2001 Kai Sterker <kaisterker@linuxgames.com>
5  Part of the Adonthell Project http://adonthell.linuxgames.com
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 
16 /**
17  * @file character.h
18  * @author Kai Sterker <kaisterker@linuxgames.com>
19  *
20  * @brief Declares the character class.
21  *
22  *
23  */
24 
25 
26 #ifndef CHARACTER_H_
27 #define CHARACTER_H_
28 
29 #include "mapcharacter.h"
30 
31 /**
32  * Class holding %game characters.
33  *
34  */
35 class character : public mapcharacter
36 {
37 public:
38  /**
39  * Default constructor.
40  *
41  */
42  character();
43 
44  /**
45  * Destructor.
46  *
47  */
48  ~character();
49 };
50 
51 #ifndef SWIG
52 
53 namespace data
54 {
55  /**
56  * All the game's characters, different from the player.
57  *
58  */
59  extern dictionary <character *> characters;
60 
61  /**
62  * The player character.
63  *
64  */
65  extern character *the_player;
66 }
67 #endif
68 
69 #endif // CHARACTER_H_
~character()
Destructor.
Definition: character.cc:34
Class holding game characters.
Definition: character.h:35
Stores objects of any kind.
Definition: storage.h:227
character()
Default constructor.
Definition: character.cc:30
Representation of characters on a landmap.
Definition: mapcharacter.h:135
Declares the mapcharacter class.