4
Copyright (C) 2005-2010 Julien Jorge, Sebastien Angibaud
6
This program is free software; you can redistribute it and/or modify it
7
under the terms of the GNU General Public License as published by the
8
Free Software Foundation; either version 2 of the License, or (at your
9
option) any later version.
11
This program is distributed in the hope that it will be useful, but WITHOUT
12
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16
You should have received a copy of the GNU General Public License along
17
with this program; if not, write to the Free Software Foundation, Inc.,
18
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
contact: plee-the-bear@gamned.org
22
Please add the tag [PTB] in the subject of your mails.
26
* \brief The class describing God.
27
* \author Sebastien Angibaud
29
#ifndef __PTB_GOD_HPP__
30
#define __PTB_GOD_HPP__
32
#include "ptb/monster_item.hpp"
33
#include "ptb/item_brick/item_that_speaks.hpp"
34
#include "engine/model.hpp"
36
#include "engine/export.hpp"
41
* \brief The class describing God.
42
* \author Sebastien Angibaud
45
public item_that_speaks
48
< bear::engine::base_item> > >
50
DECLARE_BASE_ITEM(god);
53
/** \brief The type of the parent class. */
58
< bear::engine::base_item > > > super;
60
TEXT_INTERFACE_DECLARE_METHOD_LIST(super, init_exported_methods)
63
typedef void (god::*progress_function_type)(bear::universe::time_type);
68
void progress( bear::universe::time_type elapsed_time );
73
virtual void execute_function( const std::string& name );
76
void progress_idle( bear::universe::time_type elapsed_time );
77
void progress_talk( bear::universe::time_type elapsed_time );
82
void do_action(const std::string& a);
83
void talk(const std::vector<std::string>& speech);
85
static void init_exported_methods();
88
/** \brief Current progress function. */
89
progress_function_type m_progress;
93
#endif // __PTB_GOD_HPP__