Public Member Functions | Protected Attributes

editor::editor_action_starting_position Class Reference

Set starting position action. More...

#include <action.hpp>

Inheritance diagram for editor::editor_action_starting_position:
Inheritance graph
[legend]
Collaboration diagram for editor::editor_action_starting_position:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 editor_action_starting_position (map_location loc, int player)
editor_action_starting_positionclone () const
 Action cloning.
editor_actionperform (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_

Detailed Description

Set starting position action.

Definition at line 284 of file action.hpp.


Constructor & Destructor Documentation

editor::editor_action_starting_position::editor_action_starting_position ( map_location  loc,
int  player 
) [inline]

Definition at line 287 of file action.hpp.


Member Function Documentation

editor_action_starting_position * editor::editor_action_starting_position::clone (  )  const [virtual]
const char* editor::editor_action_starting_position::get_name (  )  const [inline, virtual]
Returns:
a short name of this action type, defaults to unknown

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.


Member Data Documentation

Definition at line 296 of file action.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:19:25 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs