|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Movement
Title: Movement
Description: This interface is for implementing a movement control system, either through the Keyboard, mouse or other device.
Copyright: Copyright (c) 2006
Method Summary | |
---|---|
void |
collideHorizontal()
Adjust the horizontal (x axis) movement to a collision. |
void |
collideLayer()
Adjust the layer (z axis) movement to a collision. |
void |
collideVertical()
Adjust the vertical (y axis) movement to a collision. |
Movement |
copy(Actor actor)
Copies the movement. |
float |
getDirection()
This returns the direction of the movement. |
GameVector |
getGameVector()
This returns the current GameVector for this movement. |
double |
getXUpdate()
This returns the amount of X movement for a given update. |
double |
getYUpdate()
This returns the amount of Y movement for a given update. |
void |
update(long elapseTime)
This method takes the elapse time, since the last update, and to determine the next movement to set to the GameVector. |
Methods inherited from interface org.deken.game.Updateable |
---|
getName |
Method Detail |
---|
void collideHorizontal()
void collideLayer()
void collideVertical()
Movement copy(Actor actor)
actor
-
float getDirection()
GameVector getGameVector()
double getXUpdate()
double getYUpdate()
void update(long elapseTime)
update
in interface Updateable
elapseTime
- long
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |