The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Attributes | List of all members
shroud_map Class Reference

#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_
 

Detailed Description

Definition at line 43 of file team.hpp.

Constructor & Destructor Documentation

◆ shroud_map()

shroud_map::shroud_map ( )
inline

Definition at line 45 of file team.hpp.

Member Function Documentation

◆ clear()

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

Definition at line 781 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().

◆ copy_from()

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

Definition at line 923 of file team.cpp.

References clear(), and enabled_.

◆ enabled()

bool shroud_map::enabled ( ) const
inline

Definition at line 60 of file team.hpp.

References enabled_.

Referenced by set_enabled(), team::uses_fog(), and team::uses_shroud().

◆ height()

int shroud_map::height ( ) const

Definition at line 773 of file team.cpp.

References b, and data_.

Referenced by intf_parse_shroud_bitmap().

◆ merge()

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

Definition at line 907 of file team.cpp.

References clear(), and i.

Referenced by team::merge_shroud_map_data().

◆ place()

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

Definition at line 803 of file team.cpp.

References data_, DBG_NG, enabled_, and utf8::size().

Referenced by team::place_shroud().

◆ read()

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

Definition at line 888 of file team.cpp.

References data_.

Referenced by team::build(), and intf_parse_shroud_bitmap().

◆ reset()

void shroud_map::reset ( )

Definition at line 820 of file team.cpp.

References data_, enabled_, draw::fill(), and i.

Referenced by team::refog(), and team::reshroud().

◆ set_enabled()

void shroud_map::set_enabled ( bool  enabled)
inline

◆ shared_value()

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

Definition at line 851 of file team.cpp.

References enabled_.

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

◆ value()

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

Definition at line 831 of file team.cpp.

References data_, enabled_, and utf8::size().

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

◆ width()

int shroud_map::width ( ) const

Definition at line 768 of file team.cpp.

References data_.

Referenced by intf_parse_shroud_bitmap().

◆ write()

std::string shroud_map::write ( ) const

Definition at line 872 of file team.cpp.

References data_, and i.

Referenced by intf_make_shroud_bitmap(), team::shroud_data(), and team::write().

Member Data Documentation

◆ data_

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

Definition at line 67 of file team.hpp.

Referenced by clear(), height(), place(), read(), reset(), value(), width(), and write().

◆ enabled_

bool shroud_map::enabled_
private

Definition at line 66 of file team.hpp.

Referenced by clear(), copy_from(), enabled(), place(), reset(), set_enabled(), shared_value(), and value().


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