#include <move.hpp>
Public Member Functions | |
void | add_seen_friend (const unit_map::const_iterator &u) |
add a location of a seen friend More... | |
void | add_seen_enemy (const unit_map::const_iterator &u) |
add the location of new seen enemy More... | |
const unit_map::const_iterator & | get_ambusher () const |
get the location of an ambusher More... | |
const unit_map::const_iterator & | get_failed_teleport () const |
get the location of a failed teleport More... | |
const std::vector< unit_map::const_iterator > & | get_seen_enemies () const |
get the locations of seen enemies More... | |
const std::vector< unit_map::const_iterator > & | get_seen_friends () const |
get the locations of seen friends More... | |
const unit_map::const_iterator & | get_unit () const |
get new location of moved unit More... | |
move_unit_spectator (const unit_map &units) | |
constructor More... | |
virtual | ~move_unit_spectator () |
destructor More... | |
void | reset (const unit_map &units) |
reset all locations to empty values More... | |
void | set_ambusher (const unit_map::const_iterator &u) |
set the location of an ambusher More... | |
void | set_failed_teleport (const unit_map::const_iterator &u) |
set the location of a failed teleport More... | |
void | set_unit (const unit_map::const_iterator &u) |
set the iterator to moved unit More... | |
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_ |
actions::move_unit_spectator::move_unit_spectator | ( | const unit_map & | units | ) |
|
virtual |
void actions::move_unit_spectator::add_seen_enemy | ( | const unit_map::const_iterator & | u | ) |
add the location of new seen enemy
Definition at line 65 of file move.cpp.
References seen_enemies_.
Referenced by actions::shroud_clearer::clear_loc().
void actions::move_unit_spectator::add_seen_friend | ( | const unit_map::const_iterator & | u | ) |
add a location of a seen friend
Definition at line 59 of file move.cpp.
References seen_friends_.
Referenced by actions::shroud_clearer::clear_loc().
const unit_map::const_iterator & actions::move_unit_spectator::get_ambusher | ( | ) | const |
get the location of an ambusher
Definition at line 71 of file move.cpp.
References ambusher_.
Referenced by ai::move_result::do_execute().
const unit_map::const_iterator & actions::move_unit_spectator::get_failed_teleport | ( | ) | const |
get the location of a failed teleport
Definition at line 77 of file move.cpp.
References failed_teleport_.
Referenced by ai::move_result::do_execute().
const std::vector< unit_map::const_iterator > & actions::move_unit_spectator::get_seen_enemies | ( | ) | const |
const std::vector< unit_map::const_iterator > & actions::move_unit_spectator::get_seen_friends | ( | ) | const |
const unit_map::const_iterator & actions::move_unit_spectator::get_unit | ( | ) | const |
get new location of moved unit
Definition at line 95 of file move.cpp.
References unit_.
Referenced by ai::move_result::do_execute().
void actions::move_unit_spectator::reset | ( | const unit_map & | units | ) |
reset all locations to empty values
Definition at line 111 of file move.cpp.
References ambusher_, unit_map::end(), failed_teleport_, seen_enemies_, seen_friends_, and unit_.
void actions::move_unit_spectator::set_ambusher | ( | const unit_map::const_iterator & | u | ) |
void actions::move_unit_spectator::set_failed_teleport | ( | const unit_map::const_iterator & | u | ) |
set the location of a failed teleport
Definition at line 127 of file move.cpp.
References failed_teleport_.
void actions::move_unit_spectator::set_unit | ( | const unit_map::const_iterator & | u | ) |
set the iterator to moved unit
Definition at line 133 of file move.cpp.
References unit_.
Referenced by ai::move_result::do_execute().
|
private |
Definition at line 87 of file move.hpp.
Referenced by get_ambusher(), reset(), and set_ambusher().
|
private |
Definition at line 88 of file move.hpp.
Referenced by get_failed_teleport(), reset(), and set_failed_teleport().
|
private |
Definition at line 89 of file move.hpp.
Referenced by add_seen_enemy(), get_seen_enemies(), and reset().
|
private |
Definition at line 90 of file move.hpp.
Referenced by add_seen_friend(), get_seen_friends(), and reset().
|
private |
Definition at line 91 of file move.hpp.
Referenced by get_unit(), reset(), and set_unit().