gizmoball.gui
Class GameObjectAddRemoveAction

java.lang.Object
  extended by gizmoball.gui.EditAction
      extended by gizmoball.gui.GameObjectAddRemoveAction

public class GameObjectAddRemoveAction
extends EditAction

Type of EditAction that adds and removes GameObjects.


Method Summary
 EditAction invert()
          Returns the inverse of this user action.
 GameObject nextObject()
          Returns the next GameObject to be focused on.
 void run()
          Executes user action.
 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 EditAction invert()
Returns the inverse of this user action.

Specified by:
invert in class EditAction

run

public void run()
Executes user action.

Specified by:
run in class EditAction

nextObject

public GameObject nextObject()
Returns the next GameObject to be focused on.

Specified by:
nextObject in class EditAction
Returns:
GameObject to be selected after running this action
Returns:
Next GameObject.

toString

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

Specified by:
toString in class EditAction