The Battle for Wesnoth  1.15.6+dev
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 override
const gamemapmap () const override
const std::vector< team > & teams () const override
const std::vector< std::string > & hidden_label_categories () const override
std::vector< std::string > & hidden_label_categories () override
- Public Member Functions inherited from display_context
const teamget_team (int side) const
template<typename T = void>
bool has_team (int side) const
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
unit_const_ptr get_visible_unit_shared_ptr (const map_location &loc, const team &current_team, bool see_all=false) const
bool unit_can_move (const unit &u) const
 True if, and only if, at least one of the following is true: More...
orb_status unit_orb_status (const unit &u) const
 Returns an enumurated summary of whether this unit can move and/or attack. More...
int village_owner (const map_location &loc) const
 Given the location of a village, will return the 1-based number of the team that currently owns it, and 0 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
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

◆ ignore_units_display_context()

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

Definition at line 65 of file teleport.cpp.

Member Function Documentation

◆ hidden_label_categories() [1/2]

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

Implements display_context.

Definition at line 77 of file teleport.cpp.

◆ hidden_label_categories() [2/2]

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

Implements display_context.

Definition at line 78 of file teleport.cpp.

◆ map()

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

Implements display_context.

Definition at line 75 of file teleport.cpp.

◆ teams()

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

Implements display_context.

Definition at line 76 of file teleport.cpp.

◆ units()

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

Implements display_context.

Definition at line 74 of file teleport.cpp.

Member Data Documentation

◆ gm_

const gamemap* pathfind::ignore_units_display_context::gm_

Definition at line 82 of file teleport.cpp.

◆ lbls_

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

Definition at line 84 of file teleport.cpp.

◆ tm_

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

Definition at line 83 of file teleport.cpp.

◆ um_

const unit_map* pathfind::ignore_units_display_context::um_

Definition at line 81 of file teleport.cpp.

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