#include <team.hpp>
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) |
int | width () const |
int | height () const |
Private Attributes | |
bool | enabled_ |
std::vector< std::vector< bool > > | data_ |
bool shroud_map::clear | ( | int | x, |
int | y | ||
) |
Definition at line 780 of file team.cpp.
References data_, enabled_, and utf8::size().
Referenced by team::clear_fog(), team::clear_shroud(), copy_from(), intf_make_shroud_bitmap(), and merge().
bool shroud_map::copy_from | ( | const std::vector< const shroud_map * > & | maps | ) |
|
inline |
Definition at line 60 of file team.hpp.
References enabled_.
Referenced by set_enabled(), team::uses_fog(), and team::uses_shroud().
int shroud_map::height | ( | ) | const |
Definition at line 772 of file team.cpp.
Referenced by intf_parse_shroud_bitmap().
void shroud_map::merge | ( | const std::string & | shroud_data | ) |
Definition at line 906 of file team.cpp.
Referenced by team::merge_shroud_map_data().
void shroud_map::place | ( | int | x, |
int | y | ||
) |
Definition at line 802 of file team.cpp.
References data_, DBG_NG, enabled_, and utf8::size().
Referenced by team::place_shroud().
void shroud_map::read | ( | const std::string & | shroud_data | ) |
Definition at line 887 of file team.cpp.
References data_.
Referenced by team::build(), and intf_parse_shroud_bitmap().
void shroud_map::reset | ( | ) |
Definition at line 819 of file team.cpp.
References data_, enabled_, draw::fill(), and i.
Referenced by team::refog(), and team::reshroud().
|
inline |
Definition at line 61 of file team.hpp.
References enabled(), and enabled_.
Referenced by team::build(), intf_make_shroud_bitmap(), intf_parse_shroud_bitmap(), team::set_fog(), and team::set_shroud().
bool shroud_map::shared_value | ( | const std::vector< const shroud_map * > & | maps, |
int | x, | ||
int | y | ||
) | const |
Definition at line 850 of file team.cpp.
References enabled_.
Referenced by team::fogged(), and team::shrouded().
bool shroud_map::value | ( | int | x, |
int | y | ||
) | const |
Definition at line 830 of file team.cpp.
References data_, enabled_, and utf8::size().
Referenced by team::fogged(), intf_parse_shroud_bitmap(), and team::shrouded().
int shroud_map::width | ( | ) | const |
Definition at line 767 of file team.cpp.
References data_.
Referenced by intf_parse_shroud_bitmap().
std::string shroud_map::write | ( | ) | const |
Definition at line 871 of file team.cpp.
Referenced by intf_make_shroud_bitmap(), team::shroud_data(), and team::write().
|
private |
|
private |
Definition at line 66 of file team.hpp.
Referenced by clear(), copy_from(), enabled(), place(), reset(), set_enabled(), shared_value(), and value().