58 ,
id_(u.underlying_id())
69 ,
id_(u.underlying_id())
70 , filter_loc_(filter_loc)
82 return id_ == 0 || ( un_it.
valid() &&
id_ == un_it->underlying_id() );
unit_const_ptr get_unit() const
entity_location(const map_location &loc, size_t id=0)
Constructor for when an event has a location but not necessarily a unit.
static const entity_location null_entity
pointer get_shared_ptr() const
bool matches(const unit &u, const map_location &loc) const
Determine if *this matches filter at a specified location.
filter_context * filter_con
bool matches_unit_filter(const unit_map::const_iterator &un_it, const vconfig &filter) const
Determines if un_it matches filter.
size_t id_
The underlying ID of the unit associated with this.
static const map_location & null_location()
Encapsulates the map of the game.
static std::string get_location(const std::string &loc)
map_location filter_loc_
This map_location allows a unit to be filtered as if it were somewhere other than where it is...
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
bool matches_unit(const unit_map::const_iterator &un_it) const
Determines if un_it matches (using underlying ID) the unit that was supplied when this was constructe...
A variable-expanding proxy for the config class.
unit_iterator find(size_t id)
Define locations as used by the game's events mechanism.