vitro.plane
Class ForceAction
java.lang.Object
vitro.plane.ForceAction
- All Implemented Interfaces:
- Action
public class ForceAction
- extends Object
- implements Action
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(). |
force
public final Vector2 force
actor
public final PhysicsActor actor
ForceAction
public ForceAction(PhysicsActor actor,
Vector2 force)
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