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);
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;
A config object defines a single node in a WML file, with access to child nodes.
config to_config() const
Inherited from savegame_config.
void add(const teleport_group &group)
std::vector< teleport_group > tunnels_
void remove(const std::string &id)
const std::vector< teleport_group > & get() const
manager(const config &cfg)
std::string next_unique_id()
config to_config() const
Inherited from savegame_config.
bool always_visible() const
const std::string & get_teleport_id() const
teleport_group(const config &cfg)
bool pass_allied_units() const
void get_teleport_pair(teleport_pair &loc_pair, const unit &u, const bool ignore_units) const
bool allow_vision() const
std::map< map_location, std::set< std::string > > teleport_map_
std::map< std::string, std::set< map_location > > targets_
std::set< map_location > get_targets() const
Returns the locations that are an exit of the tunnel.
std::map< std::string, std::set< map_location > > sources_
std::set< map_location > get_adjacents(map_location loc) const
std::set< map_location > get_sources() const
Returns the locations that are an entrance of the tunnel.
This class stores all the data for a single 'side' (in game nomenclature).
This class represents a single unit of a specific type.
A variable-expanding proxy for the config class.
std::pair< std::set< map_location >, std::set< map_location > > teleport_pair
const teleport_map get_teleport_locations(const unit &u, const team &viewing_team, bool see_all, bool ignore_units, bool check_vision)
Encapsulates the map of the game.