19 #ifndef WB_RECRUIT_HPP_
20 #define WB_RECRUIT_HPP_
40 virtual std::ostream&
print(std::ostream&
s)
const;
44 virtual void execute(
bool& success,
bool& complete);
81 return boost::static_pointer_cast<
recruit>(action::shared_from_this());
virtual config to_config() const
Constructs and returns a config object representing this object.
boost::shared_ptr< recruit > shared_from_this()
map_location const get_recruit_hex() const
virtual void execute(bool &success, bool &complete)
Output parameters: success: Whether or not to continue an execute-all after this execution complete: ...
virtual void apply_temp_modifier(unit_map &unit_map)
Applies temporarily the result of this action to the specified unit map.
virtual void do_hide()
Called by the non-virtual hide() and show(), respectively.
static config unit_name(const unit *u)
virtual map_location get_numbering_hex() const
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 unit_ptr get_unit() const
size_t team_index() const
Returns the index of the team that owns this action.
unit_ptr create_corresponding_unit()
virtual void accept(visitor &v)
Encapsulates the map of the game.
virtual void redraw()
Redrawing function, called each time the action situation might have changed.
virtual std::ostream & print(std::ostream &s) const
map_location recruit_hex_
recruit(size_t team_index, bool hidden, const std::string &unit_name, const map_location &recruit_hex)
Container associating units to locations.
std::ostream & operator<<(std::ostream &s, action_ptr action)
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.
virtual void remove_temp_modifier(unit_map &unit_map)
Removes the result of this action from the specified unit map.
GLsizei const GLcharARB ** string
Holds a temporary unit that can be drawn on the map without being placed in the unit_map.
virtual error check_validity() const
Check the validity of the action.
virtual fake_unit_ptr get_fake_unit()
Abstract base class for all the visitors (cf GoF Visitor Design Pattern) the whiteboard uses...