19 #ifndef WB_UTILITY_HPP_
20 #define WB_UTILITY_HPP_
bool team_has_visible_plan(team &t)
Returns whether a given team's plan is visible.
unit * find_recruiter(size_t team_index, map_location const &hex)
bool has_actions()
Return whether the whiteboard has actions.
int path_cost(std::vector< map_location > const &path, unit const &u)
Computes the MP cost for u to travel path.
temporary_unit_hider(unit &u)
void unghost_owner_unit(unit *unit)
This class stores all the data for a single 'side' (in game nomenclature).
void clear()
Stop tracking the variable, i.e.
GLsizei const char ** path
GLsizei const GLfloat * value
Contains typedefs for the whiteboard.
void ghost_owner_unit(unit *unit)
void for_each_action(std::function< void(action *)> function, team_filter team_filter)
Apply a function to all the actions of the whiteboard.
Encapsulates the map of the game.
std::deque< action_ptr > find_actions_of(unit const &target)
Find the actions of an unit.
side_actions_ptr viewer_actions()
std::function< bool(team &)> team_filter
Callable object class to filter teams.
Finalizer class to help with exception safety sets variable to value on destruction.
unit_const_ptr find_backup_leader(const unit &leader)
For a given leader on a keep, find another leader on another keep in the same castle.
unit * future_visible_unit(map_location hex, int viewer_side)
Applies the future unit map and.
variable_finalizer(T &variable, T value)
boost::shared_ptr< side_actions > side_actions_ptr
Abstract base class for all the whiteboard planned actions.
action_ptr find_action_at(map_location hex, team_filter team_filter)
Find the first action occuring on a given hex.
side_actions_ptr current_side_actions()