#include <actions.hpp>

Public Member Functions | |
| void | add_seen_friend (const unit_map::const_iterator &u) |
| add a location of a seen friend | |
| void | add_seen_enemy (const unit_map::const_iterator &u) |
| add the location of new seen enemy | |
| const unit_map::const_iterator & | get_ambusher () const |
| get the location of an ambusher | |
| const unit_map::const_iterator & | get_failed_teleport () const |
| get the location of a failed teleport | |
| const std::vector < unit_map::const_iterator > & | get_seen_enemies () const |
| get the locations of seen enemies | |
| const std::vector < unit_map::const_iterator > & | get_seen_friends () const |
| get the locations of seen friends | |
| const unit_map::const_iterator & | get_unit () const |
| get new location of moved unit | |
| move_unit_spectator (const unit_map &units) | |
| constructor | |
| virtual | ~move_unit_spectator () |
| destructor | |
| void | reset (const unit_map &units) |
| reset all locations to empty values | |
| void | set_ambusher (const unit_map::const_iterator &u) |
| set the location of an ambusher | |
| void | set_failed_teleport (const unit_map::const_iterator &u) |
| set the location of a failed teleport | |
| void | set_unit (const unit_map::const_iterator &u) |
| set the iterator to moved unit | |
Private Attributes | |
| unit_map::const_iterator | ambusher_ |
| unit_map::const_iterator | failed_teleport_ |
| std::vector < unit_map::const_iterator > | seen_enemies_ |
| std::vector < unit_map::const_iterator > | seen_friends_ |
| unit_map::const_iterator | unit_ |
Definition at line 237 of file actions.hpp.
| move_unit_spectator::move_unit_spectator | ( | const unit_map & | units | ) |
constructor
Definition at line 112 of file actions.cpp.
| move_unit_spectator::~move_unit_spectator | ( | ) | [virtual] |
destructor
Definition at line 118 of file actions.cpp.
| void move_unit_spectator::add_seen_enemy | ( | const unit_map::const_iterator & | u | ) |
add the location of new seen enemy
Definition at line 76 of file actions.cpp.
References seen_enemies_.
| void move_unit_spectator::add_seen_friend | ( | const unit_map::const_iterator & | u | ) |
add a location of a seen friend
Definition at line 70 of file actions.cpp.
References seen_friends_.
| const unit_map::const_iterator & move_unit_spectator::get_ambusher | ( | ) | const |
| const unit_map::const_iterator & move_unit_spectator::get_failed_teleport | ( | ) | const |
get the location of a failed teleport
Definition at line 88 of file actions.cpp.
References failed_teleport_.
| const std::vector< unit_map::const_iterator > & move_unit_spectator::get_seen_enemies | ( | ) | const |
get the locations of seen enemies
Definition at line 94 of file actions.cpp.
References seen_enemies_.
| const std::vector< unit_map::const_iterator > & move_unit_spectator::get_seen_friends | ( | ) | const |
get the locations of seen friends
Definition at line 100 of file actions.cpp.
References seen_friends_.
| const unit_map::const_iterator & move_unit_spectator::get_unit | ( | ) | const |
| void move_unit_spectator::reset | ( | const unit_map & | units | ) |
reset all locations to empty values
Definition at line 122 of file actions.cpp.
References ambusher_, unit_map::end(), failed_teleport_, seen_enemies_, seen_friends_, and unit_.

| void move_unit_spectator::set_ambusher | ( | const unit_map::const_iterator & | u | ) |
| void move_unit_spectator::set_failed_teleport | ( | const unit_map::const_iterator & | u | ) |
set the location of a failed teleport
Definition at line 138 of file actions.cpp.
References failed_teleport_.
| void move_unit_spectator::set_unit | ( | const unit_map::const_iterator & | u | ) |
set the iterator to moved unit
Definition at line 144 of file actions.cpp.
References unit_.
Referenced by move_unit().

Definition at line 289 of file actions.hpp.
Referenced by get_ambusher(), reset(), and set_ambusher().
Definition at line 290 of file actions.hpp.
Referenced by get_failed_teleport(), reset(), and set_failed_teleport().
std::vector<unit_map::const_iterator> move_unit_spectator::seen_enemies_ [private] |
Definition at line 291 of file actions.hpp.
Referenced by add_seen_enemy(), get_seen_enemies(), and reset().
std::vector<unit_map::const_iterator> move_unit_spectator::seen_friends_ [private] |
Definition at line 292 of file actions.hpp.
Referenced by add_seen_friend(), get_seen_friends(), and reset().
Definition at line 293 of file actions.hpp.
Referenced by get_unit(), reset(), and set_unit().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:14:38 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |