gizmoball.gui
Class EditAction

java.lang.Object
  extended by gizmoball.gui.EditAction
Direct Known Subclasses:
GameObjectAddRemoveAction, GameObjectEditAction, KeyMappingEditAction

public abstract class EditAction
extends java.lang.Object

EditAction stores the editing actions done by the user. Every change made to the WorldModel is done via EditActions. Every EditAction does a combination of the following: - adds Gizmos - removes Gizmos - edits Gizmos - adds KeyMappings - removes KeyMappings For example, changing a Gizmo from A to B involves removing Gizmo A and adding Gizmo B.


Method Summary
abstract  EditAction invert()
          Returns the inverse of this user action.
abstract  GameObject nextObject()
           
abstract  void run()
          Executes user action.
abstract  java.lang.String toString()
          String representation of this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

invert

public abstract EditAction invert()
Returns the inverse of this user action.


run

public abstract void run()
Executes user action.


toString

public abstract java.lang.String toString()
String representation of this.

Overrides:
toString in class java.lang.Object

nextObject

public abstract GameObject nextObject()
Returns:
GameObject to be selected after running this action