26 #define ERR_WB_H LOG_STREAM(err, log_whiteboard_highlight)
27 #define WRN_WB_H LOG_STREAM(warn, log_whiteboard_highlight)
28 #define LOG_WB_H LOG_STREAM(info, log_whiteboard_highlight)
29 #define DBG_WB_H LOG_STREAM(debug, log_whiteboard_highlight)
67 class unhighlight_visitor;
70 class highlight_main_visitor;
73 class highlight_secondary_visitor;
Container associating units to locations.
highlight_main_visitor(highlighter &h)
highlighter & highlighter_
void visit(suppose_dead_ptr)
void visit(suppose_dead_ptr)
highlighter & highlighter_
highlight_secondary_visitor(highlighter &h)
unhighlight_visitor(highlighter &h)
void visit(suppose_dead_ptr)
highlighter & highlighter_
Class that handles highlighting planned actions as you hover over them and determine the right target...
side_actions_ptr side_actions_
std::deque< weak_action_ptr > secondary_highlights_t
void find_main_highlight()
const map_location & get_mouseover_hex() const
std::set< map_location > exclusive_display_hexes_
action_ptr get_bump_target()
void last_action_redraw(move_ptr)
Redraw the given move action when needed.
secondary_highlights_t secondary_highlights_
weak_action_ptr get_main_highlight()
unit_ptr selection_candidate_
action_ptr get_execute_target()
void set_selection_candidate(unit_ptr candidate)
void set_mouseover_hex(const map_location &hex)
map_location mouseover_hex_
secondary_highlights_t get_secondary_highlights()
highlighter(side_actions_ptr side_actions)
unit_map & get_unit_map()
action_ptr get_delete_target()
weak_action_ptr selected_action_
unit_ptr get_selection_target()
void find_secondary_highlights()
weak_action_ptr main_highlight_
This internal whiteboard class holds the planned action queues for a team, and offers many utility me...
Abstract base class for all the visitors (cf GoF Visitor Design Pattern) the whiteboard uses.
static lg::log_domain log_whiteboard_highlight("whiteboard/highlight")
std::shared_ptr< recruit > recruit_ptr
std::weak_ptr< action > weak_action_ptr
std::shared_ptr< suppose_dead > suppose_dead_ptr
std::shared_ptr< move > move_ptr
std::shared_ptr< action > action_ptr
std::shared_ptr< attack > attack_ptr
std::shared_ptr< side_actions > side_actions_ptr
std::shared_ptr< recall > recall_ptr
std::shared_ptr< unit > unit_ptr
Encapsulates the map of the game.
visitor is an abstract interface : action.accept(visitor) calls visitor.visit(action)