|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.game.AbstractToken
org.vizzini.example.pong.Paddle
public class Paddle
Provides a paddle for Pong.
| Field Summary |
|---|
| Fields inherited from class org.vizzini.game.AbstractToken |
|---|
UNKNOWN_NAME |
| Fields inherited from interface org.vizzini.game.IToken |
|---|
AGENT_PROPERTY, NAME_PROPERTY, POSITION_PROPERTY, TEAM_PROPERTY |
| Constructor Summary | |
|---|---|
Paddle()
Construct this object. |
|
| Method Summary | |
|---|---|
void |
configure(Properties properties,
int index)
Configure this token. |
Rectangle |
getBounds()
Return the paddle bounds. |
Dimension |
getDimension()
Return the paddle dimensions. |
int |
getSpeed()
Return the speed. |
void |
setDimension(Dimension dimension)
Set the paddle dimensions. |
void |
setSpeed(int speed)
Set the speed. |
void |
updatePosition(Dimension bounds,
boolean isUp)
Update the paddle position. |
| Methods inherited from class org.vizzini.game.AbstractToken |
|---|
addPropertyChangeListener, clone, copy, equals, getAgent, getIndex, getName, getPosition, getPropertyChangeManager, getTeam, getValue, hashCode, isFiringPositionChanges, removePropertyChangeListener, setAgent, setFiringPositionChanges, setIndex, setName, setPosition, setTeam, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Paddle()
| Method Detail |
|---|
public void configure(Properties properties,
int index)
configure in interface ITokenconfigure in class AbstractTokenproperties - Source of configuration information.index - Index of this token's properties.public Rectangle getBounds()
public Dimension getDimension()
public int getSpeed()
public void setDimension(Dimension dimension)
public void setSpeed(int speed)
public void updatePosition(Dimension bounds,
boolean isUp)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |