org.vizzini.example.pong
Class Action

java.lang.Object
  extended by org.vizzini.game.action.AbstractAction
      extended by org.vizzini.example.pong.Action
All Implemented Interfaces:
Serializable, Comparable, IAction

public class Action
extends AbstractAction

Provides a action for Pong. The action is simply a command to move a paddle up or down. The environment controls the movement speed.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson
See Also:
Serialized Form

Constructor Summary
Action()
           
 
Method Summary
 boolean isUp()
          Return true if the command is up.
 void setUp(boolean isUp)
          Set the command direction.
 String toString()
          Return a string representation of this object.
 
Methods inherited from class org.vizzini.game.action.AbstractAction
clear, compareTo, doIt, equals, getAgent, getRating, hashCode, prettyPrint, release, setAgent, setRating, undoIt
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Action

public Action()
Method Detail

isUp

public boolean isUp()
Return true if the command is up.

Since:
v0.1

setUp

public void setUp(boolean isUp)
Set the command direction.

Since:
v0.1

toString

public String toString()
Return a string representation of this object.

Overrides:
toString in class AbstractAction
Since:
v0.1


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02