Public Member Functions | |
| ignore_units_display_context (const display_context &dc) | |
| const unit_map & | units () const override |
| const gamemap & | map () 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 team & | get_team (int side) const |
| This getter takes a 1-based side number, not a 0-based team number. | |
| 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. | |
| const unit * | get_visible_unit (const map_location &loc, const team ¤t_team, bool see_all=false) const |
| unit_const_ptr | get_visible_unit_shared_ptr (const map_location &loc, const team ¤t_team, bool see_all=false) const |
| can_move_result | unit_can_move (const unit &u) const |
| Work out what u can do - this does not check which player's turn is currently active, the result is calculated assuming that the unit's owner is currently active. | |
| orb_status | unit_orb_status (const unit &u) const |
| Returns an enumurated summary of whether this unit can move and/or attack. | |
| 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. | |
| int | side_units (int side_num) const |
| Returns the number of units of the side side_num. | |
| int | side_units_cost (int side_num) const |
| Returns the total cost of units of side side_num. | |
| int | side_upkeep (int side_num) const |
| bool | is_observer () const |
| Check if we are an observer in this game. | |
| virtual | ~display_context () |
Private Attributes | |
| const unit_map * | um_ |
| const gamemap * | gm_ |
| const std::vector< team > * | tm_ |
| const std::vector< std::string > * | lbls_ |
Definition at line 68 of file teleport.cpp.
|
inline |
Definition at line 70 of file teleport.cpp.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements display_context.
Definition at line 83 of file teleport.cpp.
|
inlineoverridevirtual |
Implements display_context.
Definition at line 80 of file teleport.cpp.
References gm_.
Referenced by ignore_units_display_context().
Definition at line 87 of file teleport.cpp.
Referenced by map().
|
private |
Definition at line 89 of file teleport.cpp.
Referenced by hidden_label_categories().
Definition at line 88 of file teleport.cpp.
Referenced by teams().
Definition at line 86 of file teleport.cpp.
Referenced by ignore_units_display_context(), and units().