The Battle for Wesnoth  1.15.0+dev
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 74 of file team.hpp.

Constructor & Destructor Documentation

◆ shroud_map()

team::shroud_map::shroud_map ( )
inline

Definition at line 76 of file team.hpp.

References preferences::clear(), read(), and write().

Member Function Documentation

◆ clear()

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

Definition at line 761 of file team.cpp.

References utf8::size().

◆ copy_from()

bool team::shroud_map::copy_from ( const std::vector< const shroud_map *> &  maps)

Definition at line 903 of file team.cpp.

References preferences::clear().

◆ enabled()

bool team::shroud_map::enabled ( ) const
inline

Definition at line 91 of file team.hpp.

◆ merge()

void team::shroud_map::merge ( const std::string &  shroud_data)

Definition at line 887 of file team.cpp.

References preferences::clear(), and i.

◆ place()

void team::shroud_map::place ( int  x,
int  y 
)

Definition at line 783 of file team.cpp.

References DBG_NG, and utf8::size().

◆ read()

void team::shroud_map::read ( const std::string &  shroud_data)

Definition at line 868 of file team.cpp.

Referenced by team::build().

◆ reset()

void team::shroud_map::reset ( )

Definition at line 800 of file team.cpp.

References i.

◆ set_enabled()

void team::shroud_map::set_enabled ( bool  enabled)
inline

Definition at line 92 of file team.hpp.

Referenced by team::build().

◆ shared_value()

bool team::shroud_map::shared_value ( const std::vector< const shroud_map *> &  maps,
int  x,
int  y 
) const

Definition at line 831 of file team.cpp.

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

◆ value()

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

Definition at line 811 of file team.cpp.

References utf8::size().

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

◆ write()

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

Definition at line 852 of file team.cpp.

References i.

Referenced by team::write().

Member Data Documentation

◆ data_

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

Definition at line 95 of file team.hpp.

◆ enabled_

bool team::shroud_map::enabled_
private

Definition at line 94 of file team.hpp.


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