28 typedef std::pair<std::set<map_location>, std::set<map_location>>
59 ,
const bool ignore_units)
const;
106 const std::vector<teleport_group>& teleport_groups
108 ,
const team &viewing_team
110 ,
const bool ignore_units
111 ,
const bool check_vision);
117 teleport_map_(), sources_(), targets_() {}
123 std::set<map_location> get_adjacents(
map_location loc)
const;
126 std::set<map_location> get_sources()
const;
129 std::set<map_location> get_targets()
const;
135 return sources_.empty();
140 std::map<std::string, std::set<map_location>>
sources_;
141 std::map<std::string, std::set<map_location>>
targets_;
153 bool see_all =
false,
bool ignore_units =
false,
bool check_vision =
false);
168 void remove(
const std::string &
id);
173 const std::vector<teleport_group>&
get()
const;
181 std::string next_unique_id();
std::map< std::string, std::set< map_location > > sources_
std::pair< std::set< map_location >, std::set< map_location > > teleport_pair
This class represents a single unit of a specific type.
bool pass_allied_units() const
bool allow_vision() const
config to_config() const
Inherited from savegame_config.
Definitions for the interface to Wesnoth Markup Language (WML).
teleport_group(const config &cfg)
const std::string & get_teleport_id() const
This class stores all the data for a single 'side' (in game nomenclature).
void get_teleport_pair(teleport_pair &loc_pair, const unit &u, const bool ignore_units) const
std::map< std::string, std::set< map_location > > targets_
Encapsulates the map of the game.
std::string id
Text to match against addon_info.tags()
std::map< map_location, std::set< std::string > > teleport_map_
std::vector< teleport_group > tunnels_
A variable-expanding proxy for the config class.
const teleport_map get_teleport_locations(const unit &u, const team &viewing_team, bool see_all, bool ignore_units, bool check_vision)
bool always_visible() const
A config object defines a single node in a WML file, with access to child nodes.