Public Member Functions | Private Attributes

move_unit_spectator Class Reference

#include <actions.hpp>

Collaboration diagram for move_unit_spectator:
Collaboration graph
[legend]

List of all members.

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_iteratorget_ambusher () const
 get the location of an ambusher
const unit_map::const_iteratorget_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_iteratorget_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_

Detailed Description

Definition at line 237 of file actions.hpp.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

get the location of an ambusher

Definition at line 82 of file actions.cpp.

References ambusher_.

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

get new location of moved unit

Definition at line 106 of file actions.cpp.

References unit_.

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_.

Here is the call graph for this function:

void move_unit_spectator::set_ambusher ( const unit_map::const_iterator u  ) 

set the location of an ambusher

Definition at line 132 of file actions.cpp.

References ambusher_.

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().

Here is the caller graph for this function:


Member Data Documentation

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().

Definition at line 291 of file actions.hpp.

Referenced by add_seen_enemy(), get_seen_enemies(), and reset().

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:14:38 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs