Adonthell
0.4
|
00001 /* 00002 $Id: character.h,v 1.25 2003/02/23 23:14:34 ksterker Exp $ 00003 00004 Copyright (C) 2000/2001 Kai Sterker <kaisterker@linuxgames.com> 00005 Part of the Adonthell Project http://adonthell.linuxgames.com 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License. 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY. 00011 00012 See the COPYING file for more details. 00013 */ 00014 00015 00016 /** 00017 * @file character.h 00018 * @author Kai Sterker <kaisterker@linuxgames.com> 00019 * 00020 * @brief Declares the character class. 00021 * 00022 * 00023 */ 00024 00025 00026 #ifndef CHARACTER_H_ 00027 #define CHARACTER_H_ 00028 00029 #include "mapcharacter.h" 00030 00031 /** 00032 * Class holding %game characters. 00033 * 00034 */ 00035 class character : public mapcharacter 00036 { 00037 public: 00038 /** 00039 * Default constructor. 00040 * 00041 */ 00042 character(); 00043 00044 /** 00045 * Destructor. 00046 * 00047 */ 00048 ~character(); 00049 }; 00050 00051 #ifndef SWIG 00052 00053 namespace data 00054 { 00055 /** 00056 * All the game's characters, different from the player. 00057 * 00058 */ 00059 extern dictionary <character *> characters; 00060 00061 /** 00062 * The player character. 00063 * 00064 */ 00065 extern character *the_player; 00066 } 00067 #endif 00068 00069 #endif // CHARACTER_H_