Document::SetStartPositionsDelta Class Reference

Command for creating start positions and other related tasks. More...

#include <SetStartEdgeDelta.h>

Inheritance diagram for Document::SetStartPositionsDelta:

Document::StackableDelta Document::DocumentDelta List of all members.

Public Member Functions

 SetStartPositionsDelta (const unsigned int edge_name)
 Create command to make the given edge contain the start positions.
virtual void apply (Track::Track &track)
 Create a stack of DocumentDeltas.

Protected Attributes

unsigned int m_edge_name
 The name.

Detailed Description

Command for creating start positions and other related tasks.

Changes the starting edge, removes old start markers, and adds new start markers.

Definition at line 40 of file SetStartEdgeDelta.h.


Constructor & Destructor Documentation

Document::SetStartPositionsDelta::SetStartPositionsDelta ( const unsigned int  edge_name  ) 

Create command to make the given edge contain the start positions.

Parameters:
edge_name The name of the edge you wish to make the start edge in the track's path. This edge will contain the Track::StartMarkers, and the edge's end controls the start/finish disk.

Definition at line 36 of file SetStartEdgeDelta.cpp.


Member Function Documentation

void Document::SetStartPositionsDelta::apply ( Track::Track track  )  [virtual]

Create a stack of DocumentDeltas.

Use only add_to_stack() to change the track, so that changes can be reversed.

Parameters:
track The track to apply the changes to.

Implements Document::StackableDelta.

Definition at line 41 of file SetStartEdgeDelta.cpp.


Member Data Documentation

unsigned int Document::SetStartPositionsDelta::m_edge_name [protected]

The name.

Definition at line 53 of file SetStartEdgeDelta.h.


The documentation for this class was generated from the following files:
Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:17 2010 by Doxygen version 1.4.7 for Racer version svn335.