#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_ |
|
inline |
Definition at line 46 of file team.hpp.
References preferences::clear(), read(), and write().
bool shroud_map::clear | ( | int | x, |
int | y | ||
) |
Definition at line 778 of file team.cpp.
References utf8::size().
Referenced by intf_make_shroud_bitmap().
bool shroud_map::copy_from | ( | const std::vector< const shroud_map *> & | maps | ) |
Definition at line 920 of file team.cpp.
References preferences::clear().
int shroud_map::height | ( | ) | const |
Definition at line 770 of file team.cpp.
References a, b, and utf8::size().
Referenced by intf_parse_shroud_bitmap().
void shroud_map::merge | ( | const std::string & | shroud_data | ) |
Definition at line 904 of file team.cpp.
References preferences::clear(), and i.
void shroud_map::place | ( | int | x, |
int | y | ||
) |
Definition at line 800 of file team.cpp.
References DBG_NG, and utf8::size().
void shroud_map::read | ( | const std::string & | shroud_data | ) |
Definition at line 885 of file team.cpp.
Referenced by team::build(), and intf_parse_shroud_bitmap().
void shroud_map::reset | ( | ) |
Definition at line 817 of file team.cpp.
References draw::fill(), and i.
|
inline |
Definition at line 62 of file team.hpp.
Referenced by team::build(), intf_make_shroud_bitmap(), and intf_parse_shroud_bitmap().
bool shroud_map::shared_value | ( | const std::vector< const shroud_map *> & | maps, |
int | x, | ||
int | y | ||
) | const |
Definition at line 848 of file team.cpp.
Referenced by team::fogged(), and team::shrouded().
bool shroud_map::value | ( | int | x, |
int | y | ||
) | const |
Definition at line 828 of file team.cpp.
References utf8::size().
Referenced by team::fogged(), intf_parse_shroud_bitmap(), and team::shrouded().
int shroud_map::width | ( | ) | const |
Definition at line 765 of file team.cpp.
Referenced by intf_parse_shroud_bitmap().
std::string shroud_map::write | ( | ) | const |
Definition at line 869 of file team.cpp.
References i.
Referenced by intf_make_shroud_bitmap(), and team::write().