|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.movement.NoMovement
public class NoMovement
Title: NoMovement
Description: This movement has no action. It is for an Actor that does not move.
Copyright: Copyright (c) Jan 21, 2012
Field Summary | |
---|---|
static NoMovement |
NO_MOVEMENT
|
Constructor Summary | |
---|---|
NoMovement()
|
Method Summary | |
---|---|
void |
collideHorizontal()
Collisions have no effect on this movement. |
void |
collideLayer()
Collisions have no effect on this movement. |
void |
collideVertical()
Collisions have no effect on this movement. |
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. |
java.lang.String |
getName()
|
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 |
setName(java.lang.String name)
|
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 class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final NoMovement NO_MOVEMENT
Constructor Detail |
---|
public NoMovement()
Method Detail |
---|
public void collideHorizontal()
collideHorizontal
in interface Movement
public void collideVertical()
collideVertical
in interface Movement
public void collideLayer()
collideLayer
in interface Movement
public Movement copy(Actor actor)
Movement
copy
in interface Movement
public float getDirection()
Movement
getDirection
in interface Movement
public GameVector getGameVector()
Movement
getGameVector
in interface Movement
public java.lang.String getName()
getName
in interface Updateable
public double getXUpdate()
Movement
getXUpdate
in interface Movement
public double getYUpdate()
Movement
getYUpdate
in interface Movement
public void setName(java.lang.String name)
public void update(long elapseTime)
Movement
update
in interface Movement
update
in interface Updateable
elapseTime
- long
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |