The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
team::shroud_map Class Reference

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_
 

Detailed Description

Definition at line 80 of file team.hpp.

Constructor & Destructor Documentation

team::shroud_map::shroud_map ( )
inline

Definition at line 82 of file team.hpp.

Member Function Documentation

bool team::shroud_map::clear ( int  x,
int  y 
)

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.

bool team::shroud_map::enabled ( ) const
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::place ( int  x,
int  y 
)

Definition at line 687 of file team.cpp.

References DBG_NG.

Referenced by team::place_shroud().

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().

void team::shroud_map::set_enabled ( bool  enabled)
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().

bool team::shroud_map::value ( int  x,
int  y 
) const

Definition at line 713 of file team.cpp.

Referenced by team::fogged(), and team::shrouded().

std::string team::shroud_map::write ( ) const

Definition at line 746 of file team.cpp.

References i.

Referenced by team::write().

Member Data Documentation

std::vector<std::vector<bool> > team::shroud_map::data_
private

Definition at line 101 of file team.hpp.

Referenced by clear().

bool team::shroud_map::enabled_
private

Definition at line 100 of file team.hpp.

Referenced by clear().


The documentation for this class was generated from the following files: