game_events::entity_location Struct Reference

#include <game_events.hpp>

Inheritance diagram for game_events::entity_location:

Inheritance graph
[legend]
Collaboration diagram for game_events::entity_location:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 entity_location (gamemap::location loc, const std::string &id="")
 entity_location (unit_map::iterator itor)
bool requires_unit () const
bool matches_unit (const unit &u) const

Private Attributes

std::string id_


Detailed Description

Definition at line 64 of file game_events.hpp.


Constructor & Destructor Documentation

game_events::entity_location::entity_location ( gamemap::location  loc,
const std::string &  id = "" 
)

Definition at line 3268 of file game_events.cpp.

game_events::entity_location::entity_location ( unit_map::iterator  itor  )  [explicit]

Definition at line 3272 of file game_events.cpp.


Member Function Documentation

bool game_events::entity_location::requires_unit (  )  const

Definition at line 3281 of file game_events.cpp.

References id_.

bool game_events::entity_location::matches_unit ( const unit u  )  const

Definition at line 3276 of file game_events.cpp.

References id_, and unit::underlying_id().

Referenced by attack::attack().


Member Data Documentation

std::string game_events::entity_location::id_ [private]

Definition at line 70 of file game_events.hpp.

Referenced by matches_unit(), and requires_unit().


The documentation for this struct was generated from the following files:

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs