14 #ifndef TELEPORT_H_INCLUDED
15 #define TELEPORT_H_INCLUDED
27 typedef std::pair<std::set<map_location>, std::set<map_location> >
58 ,
const bool ignore_units)
const;
94 const std::vector<teleport_group>& teleport_groups
96 ,
const team &viewing_team
98 ,
const bool ignore_units);
118 void get_targets(std::set<map_location>& targets)
const;
129 std::map<std::string, std::set<map_location> >
sources_;
130 std::map<std::string, std::set<map_location> >
targets_;
141 bool see_all =
false,
bool ignore_units =
false);
161 const std::vector<teleport_group>&
get()
const;
std::map< std::string, std::set< map_location > > sources_
std::pair< std::set< map_location >, std::set< map_location > > teleport_pair
std::string next_unique_id()
config to_config() const
Inherited from savegame_config.
void get_targets(std::set< map_location > &targets) const
bool always_visible() const
Definitions for the interface to Wesnoth Markup Language (WML).
teleport_group(const config &cfg)
This class stores all the data for a single 'side' (in game nomenclature).
void get_sources(std::set< map_location > &sources) const
std::map< std::string, std::set< map_location > > targets_
config to_config() const
Inherited from savegame_config.
Encapsulates the map of the game.
std::map< map_location, std::set< std::string > > teleport_map_
const std::string & get_teleport_id() const
void add(const teleport_group &group)
manager(const config &cfg)
std::vector< teleport_group > tunnels_
A variable-expanding proxy for the config class.
void get_teleport_pair(teleport_pair &loc_pair, const unit &u, const bool ignore_units) const
const teleport_map get_teleport_locations(const unit &u, const team &viewing_team, bool see_all, bool ignore_units)
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
void get_adjacents(std::set< map_location > &adjacents, map_location loc) const