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
pathfind::ignore_units_display_context Class Reference
Inheritance diagram for pathfind::ignore_units_display_context:
Inheritance graph

Public Member Functions

 ignore_units_display_context (const display_context &dc)
 
const unit_mapunits () const
 
const gamemapmap () const
 
const std::vector< team > & teams () const
 
const std::vector< std::string > & hidden_label_categories () const
 
- Public Member Functions inherited from display_context
std::vector< std::string > & hidden_label_categories_ref ()
 
bool would_be_discovered (const map_location &loc, int side_num, bool see_all=true)
 Given a location and a side number, indicates whether an invisible unit of that side at that location would be revealed (perhaps ambushed), based on what team side_num can see. More...
 
const unitget_visible_unit (const map_location &loc, const team &current_team, bool see_all=false) const
 
bool unit_can_move (const unit &u) const
 Will return true iff the unit u has any possible moves it can do (including attacking etc). More...
 
int village_owner (const map_location &loc) const
 Given the location of a village, will return the 0-based index of the team that currently owns it, and -1 if it is unowned. More...
 
int side_units (int side_num) const
 Returns the number of units of the side side_num. More...
 
int side_units_cost (int side_num) const
 Returns the total cost of units of side side_num. More...
 
int side_upkeep (int side_num) const
 
team_data calculate_team_data (const class team &tm, int side) const
 
bool is_observer () const
 Check if we are an observer in this game. More...
 
virtual ~display_context ()
 

Private Attributes

const unit_mapum_
 
const gamemapgm_
 
const std::vector< team > * tm_
 
const std::vector< std::string > * lbls_
 

Detailed Description

Definition at line 63 of file teleport.cpp.

Constructor & Destructor Documentation

pathfind::ignore_units_display_context::ignore_units_display_context ( const display_context dc)
inline

Definition at line 65 of file teleport.cpp.

References um_.

Member Function Documentation

const std::vector<std::string>& pathfind::ignore_units_display_context::hidden_label_categories ( ) const
inlinevirtual

Implements display_context.

Definition at line 77 of file teleport.cpp.

References lbls_.

const gamemap& pathfind::ignore_units_display_context::map ( ) const
inlinevirtual

Implements display_context.

Definition at line 75 of file teleport.cpp.

References gm_.

const std::vector<team>& pathfind::ignore_units_display_context::teams ( ) const
inlinevirtual

Implements display_context.

Definition at line 76 of file teleport.cpp.

References tm_.

const unit_map& pathfind::ignore_units_display_context::units ( ) const
inlinevirtual

Implements display_context.

Definition at line 74 of file teleport.cpp.

References um_.

Member Data Documentation

const gamemap* pathfind::ignore_units_display_context::gm_
private

Definition at line 81 of file teleport.cpp.

Referenced by map().

const std::vector<std::string>* pathfind::ignore_units_display_context::lbls_
private

Definition at line 83 of file teleport.cpp.

Referenced by hidden_label_categories().

const std::vector<team>* pathfind::ignore_units_display_context::tm_
private

Definition at line 82 of file teleport.cpp.

Referenced by teams().

const unit_map* pathfind::ignore_units_display_context::um_
private

Definition at line 80 of file teleport.cpp.

Referenced by ignore_units_display_context(), and units().


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