4
Copyright (C) 2005-2009 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.
25
* \file state_wait.cpp
26
* \brief Implementation of the ptb::state_wait class.
27
* \author Sebastien Angibaud
29
#include "ptb/item/plee/state_wait.hpp"
34
/*----------------------------------------------------------------------------*/
38
ptb::state_wait::state_wait( plee* plee_instance )
39
: state_plee(plee_instance)
42
} // state_wait::state_wait()
44
/*----------------------------------------------------------------------------*/
46
* \brief Return the name of the state.
48
std::string ptb::state_wait::get_name() const
51
} // state_wait::get_name()
53
/*----------------------------------------------------------------------------*/
55
* \brief Move the plee to the left.
57
void ptb::state_wait::do_move_left()
59
super::do_move_left();
60
m_plee_instance->start_action_model("walk");
61
} // state_wait::do_move_left()
63
/*----------------------------------------------------------------------------*/
65
* \brief Move the plee to the left.
67
void ptb::state_wait::do_move_right()
69
super::do_move_right();
70
m_plee_instance->start_action_model("walk");
71
} // state_wait::do_move_right()
73
/*----------------------------------------------------------------------------*/
75
* \brief Make the plee look up.
77
void ptb::state_wait::do_look_upward()
79
m_plee_instance->start_action_model("look_upward");
80
} // state_wait::do_look_upward()
82
/*----------------------------------------------------------------------------*/
84
* \brief Make the plee crouch.
86
void ptb::state_wait::do_crouch()
88
m_plee_instance->start_action_model("crouch");
89
} // state_wait::do_crouch()