Public Member Functions | |
shroud_map () | |
void | place (int x, int y) |
bool | clear (int x, int y) |
void | reset () |
bool | value (int x, int y) const |
bool | shared_value (const std::vector< const shroud_map * > &maps, int x, int y) const |
bool | copy_from (const std::vector< const shroud_map * > &maps) |
std::string | write () const |
void | read (const std::string &shroud_data) |
void | merge (const std::string &shroud_data) |
bool | enabled () const |
void | set_enabled (bool enabled) |
Private Attributes | |
bool | enabled_ |
std::vector< std::vector< bool > > | data_ |
Definition at line 668 of file team.cpp.
References data_, and enabled_.
Referenced by team::clear_fog(), and team::clear_shroud().
bool team::shroud_map::copy_from | ( | const std::vector< const shroud_map * > & | maps | ) |
Definition at line 794 of file team.cpp.
References preferences::clear(), and i.
|
inline |
Definition at line 97 of file team.hpp.
Referenced by team::uses_fog(), and team::uses_shroud().
void team::shroud_map::merge | ( | const std::string & | shroud_data | ) |
Definition at line 778 of file team.cpp.
References preferences::clear().
Referenced by team::merge_shroud_map_data().
void team::shroud_map::read | ( | const std::string & | shroud_data | ) |
Definition at line 762 of file team.cpp.
Referenced by team::build().
void team::shroud_map::reset | ( | ) |
Definition at line 703 of file team.cpp.
References i.
Referenced by team::refog(), and team::reshroud().
|
inline |
Definition at line 98 of file team.hpp.
Referenced by team::build(), team::set_fog(), and team::set_shroud().
bool team::shroud_map::shared_value | ( | const std::vector< const shroud_map * > & | maps, |
int | x, | ||
int | y | ||
) | const |
Definition at line 729 of file team.cpp.
Referenced by team::fogged(), and team::shrouded().
Definition at line 713 of file team.cpp.
Referenced by team::fogged(), and team::shrouded().
std::string team::shroud_map::write | ( | ) | const |
|
private |
|
private |