Set starting position action. More...
#include <action.hpp>


Public Member Functions | |
| editor_action_starting_position (map_location loc, int player) | |
| editor_action_starting_position * | clone () const |
| Action cloning. | |
| editor_action * | perform (map_context &mc) const |
| Perform the action, returning an undo action that, when performed, shall reverse any effects of this action. | |
| void | perform_without_undo (map_context &mc) const |
| Perform the action without creating an undo action. | |
| const char * | get_name () const |
Protected Attributes | |
| int | player_ |
Set starting position action.
Definition at line 284 of file action.hpp.
| editor::editor_action_starting_position::editor_action_starting_position | ( | map_location | loc, | |
| int | player | |||
| ) | [inline] |
Definition at line 287 of file action.hpp.
| editor_action_starting_position * editor::editor_action_starting_position::clone | ( | ) | const [virtual] |
Action cloning.
Implements editor::editor_action.
Definition at line 213 of file action.cpp.
References editor::map_context::draw_terrain(), editor::editor_map::get_contiguous_terrain_tiles(), editor::map_context::get_map(), editor::editor_action_location::loc_, editor::editor_action_fill::one_layer_, editor::map_context::set_needs_terrain_rebuild(), and editor::editor_action_location_terrain::t_.

| const char* editor::editor_action_starting_position::get_name | ( | ) | const [inline, virtual] |
Reimplemented from editor::editor_action_location.
Definition at line 294 of file action.hpp.
| editor_action * editor::editor_action_starting_position::perform | ( | map_context & | mc | ) | const [virtual] |
Perform the action, returning an undo action that, when performed, shall reverse any effects of this action.
The undo action object is owned by the caller. Default behaviour is to create a whole-map undo, call the perform_without_undo function and return the undo object.
Reimplemented from editor::editor_action.
Definition at line 217 of file action.cpp.
| void editor::editor_action_starting_position::perform_without_undo | ( | map_context & | ) | const [virtual] |
Perform the action without creating an undo action.
Implements editor::editor_action.
Definition at line 239 of file action.cpp.
int editor::editor_action_starting_position::player_ [protected] |
Definition at line 296 of file action.hpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:25 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |