41 virtual std::ostream&
print(std::ostream&
s)
const;
45 virtual void execute(
bool& success,
bool& complete);
97 return boost::static_pointer_cast<
move>(action::shared_from_this());
104 boost::scoped_ptr<pathfind::marked_route>
route_;
124 boost::scoped_ptr<temporary_unit_mover>
mover_;
virtual void set_turn_number(int turn)
Assigns a turn number to display to this planned move.
virtual void do_hide()
Called by the non-virtual hide() and show(), respectively.
virtual map_location get_source_hex() const
void calculate_move_cost()
virtual config to_config() const
Constructs and returns a config object representing this object.
size_t unit_underlying_id_
int turn_number_
Turn end number to draw if greater than zero. Assigned by the map builder.
virtual map_location get_dest_hex() const
virtual void set_route(const pathfind::marked_route &route)
virtual error check_validity() const
Check the validity of the action.
virtual std::ostream & print(std::ostream &s) const
virtual void remove_temp_modifier(unit_map &unit_map)
Removes the result of this action from the specified unit map.
virtual bool calculate_new_route(const map_location &source_hex, const map_location &dest_hex)
attempts to pathfind a new marked route for this path between these two hexes; returns true and assig...
virtual void accept(visitor &v)
virtual void execute(bool &success, bool &complete)
Output parameters: success: Whether or not to continue an execute-all after this execution complete: ...
size_t team_index() const
Returns the index of the team that owns this action.
Arrows destined to be drawn on the map.
void update_arrow_style()
boost::shared_ptr< move > shared_from_this()
ARROW_BRIGHTNESS arrow_brightness_
virtual fake_unit_ptr get_fake_unit()
boost::scoped_ptr< temporary_unit_mover > mover_
boost::scoped_ptr< pathfind::marked_route > route_
Structure which holds a single route and marks for special events.
virtual void apply_temp_modifier(unit_map &unit_map)
Applies temporarily the result of this action to the specified unit map.
void redraw()
Redrawing function, called each time the action situation might have changed.
virtual unit_ptr get_unit() const
Return the unit targeted by this action.
Encapsulates the map of the game.
GLint GLint GLint GLint GLint x
move(size_t team_index, bool hidden, unit &mover, const pathfind::marked_route &route, arrow_ptr arrow, fake_unit_ptr fake_unit)
ARROW_TEXTURE arrow_texture_
void set_arrow_texture(ARROW_TEXTURE x) const
virtual arrow_ptr get_arrow()
Container associating units to locations.
std::ostream & operator<<(std::ostream &s, action_ptr action)
virtual void draw_hex(map_location const &hex)
Gets called by display when drawing a hex, to allow actions to draw to the screen.
virtual const pathfind::marked_route & get_route() const
Abstract base class for all the whiteboard planned actions.
A config object defines a single node in a WML file, with access to child nodes.
void set_arrow_brightness(ARROW_BRIGHTNESS x) const
GLsizei const GLcharARB ** string
Holds a temporary unit that can be drawn on the map without being placed in the unit_map.
A planned move, represented on the map by an arrow and a ghosted unit in the destination hex...
virtual map_location get_numbering_hex() const
This object is used to temporary move a unit in the unit map, swapping out any unit that is already t...
Abstract base class for all the visitors (cf GoF Visitor Design Pattern) the whiteboard uses...