vitro.plane
Class ForceAction

java.lang.Object
  extended by vitro.plane.ForceAction
All Implemented Interfaces:
Action

public class ForceAction
extends Object
implements Action


Field Summary
 PhysicsActor actor
           
 Vector2 force
           
 
Constructor Summary
ForceAction(PhysicsActor actor, Vector2 force)
           
 
Method Summary
 void apply()
          Apply this Action's change to a supplied Model or Models.
 boolean equals(Object o)
           
 int hashCode()
           
 void undo()
          Revert any changes made during apply().
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

force

public final Vector2 force

actor

public final PhysicsActor actor
Constructor Detail

ForceAction

public ForceAction(PhysicsActor actor,
                   Vector2 force)
Method Detail

apply

public void apply()
Description copied from interface: Action
Apply this Action's change to a supplied Model or Models.

Specified by:
apply in interface Action

undo

public void undo()
Description copied from interface: Action
Revert any changes made during apply().

Specified by:
undo in interface Action

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object