19 #ifndef WB_HIGHLIGHTER_HPP_
20 #define WB_HIGHLIGHTER_HPP_
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)
65 class unhighlight_visitor;
68 class highlight_main_visitor;
71 class highlight_secondary_visitor;
void visit(suppose_dead_ptr)
action_ptr get_delete_target()
side_actions_ptr side_actions_
const map_location & get_mouseover_hex() const
weak_action_ptr main_highlight_
void find_main_highlight()
weak_action_ptr selected_action_
void find_secondary_highlights()
map_location mouseover_hex_
unit_map & get_unit_map()
void visit(suppose_dead_ptr)
boost::weak_ptr< action > weak_action_ptr
secondary_highlights_t get_secondary_highlights()
unit_ptr selection_candidate_
static lg::log_domain log_whiteboard_highlight("whiteboard/highlight")
highlighter(side_actions_ptr side_actions)
highlighter & highlighter_
secondary_highlights_t secondary_highlights_
Class that handles highlighting planned actions as you hover over them and determine the right target...
Encapsulates the map of the game.
std::deque< weak_action_ptr > secondary_highlights_t
unhighlight_visitor(highlighter &h)
void set_mouseover_hex(const map_location &hex)
highlighter & highlighter_
GLfloat GLfloat GLfloat GLfloat h
highlight_main_visitor(highlighter &h)
action_ptr get_bump_target()
highlight_secondary_visitor(highlighter &h)
unit_ptr get_selection_target()
std::set< map_location > exclusive_display_hexes_
Container associating units to locations.
void last_action_redraw(move_ptr)
Redraw the given move action when needed.
void visit(suppose_dead_ptr)
visitor is an abstract interface : action.accept(visitor) calls visitor.visit(action) ...
action_ptr get_execute_target()
weak_action_ptr get_main_highlight()
This internal whiteboard class holds the planned action queues for a team, and offers many utility me...
highlighter & highlighter_
Abstract base class for all the visitors (cf GoF Visitor Design Pattern) the whiteboard uses...