|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.movement.actions.TimeMovementAction
public class TimeMovementAction
Title: TimeMovementAction
Description: The object holds a GameVector and a time duration, to be used with TimeMovement. The GameVector is the direction the object is to move, and the time is how long it moves in that direction.
Copyright: Copyright (c) 2005
Constructor Summary | |
---|---|
TimeMovementAction(GameVector gameVector,
int timeInSeconds)
TimeMovementAction Constructor that takes the GameVector and the int value of the time in seconds. |
|
TimeMovementAction(GameVector gameVector,
long timeInMilliseconds)
TimeMovementAction Constructor that takes the GameVector and the long value of the time in milliseconds. |
Method Summary | |
---|---|
GameVector |
getGameVector()
getGameVector This retrieve the GameVector. |
long |
getTimeInMilliseconds()
getTimeInMilliseconds This retrieve the long value of the time in milliseconds. |
int |
getTimeInSeconds()
getTimeInSeconds This returns the int value of the time in seconds, rounded down. |
void |
setGameVector(GameVector gameVector)
setGameVector Sets the GameVector. |
void |
setTimeInMilliseconds(long timeInMilliseconds)
setTimeInMilliseconds Sets the long value of the time in milliseconds. |
void |
setTimeInSeconds(int timeInSeconds)
setTimeInSeconds This sets the int value of the time in seconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeMovementAction(GameVector gameVector, long timeInMilliseconds)
gameVector
- GameVectortimeInMilliseconds
- longpublic TimeMovementAction(GameVector gameVector, int timeInSeconds)
gameVector
- GameVectortimeInSeconds
- intMethod Detail |
---|
public void setGameVector(GameVector gameVector)
gameVector
- GameVectorpublic void setTimeInMilliseconds(long timeInMilliseconds)
timeInMilliseconds
- longpublic void setTimeInSeconds(int timeInSeconds)
timeInSeconds
- intpublic GameVector getGameVector()
public long getTimeInMilliseconds()
public int getTimeInSeconds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |