|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgameaction.GameActionScheduler
public class GameActionScheduler
This class manages a queue of game actions
Constructor Summary | |
---|---|
GameActionScheduler(AbstractCharacterSprite c)
Creates a new game action scheduler with the specified character as the owner. |
Method Summary | |
---|---|
void |
add(AbstractGameAction action)
Adds a game action to the queue of game actions. |
void |
clear()
Removes every game action from the queue of game actions |
boolean |
containsActionsOtherThanWalk()
This methods determines whether there a game actions the queue that are other than walk game actions |
AbstractGameAction |
getFirst()
Returns first element of the game action queue |
java.util.LinkedList<AbstractGameAction> |
getGameActions()
Returns the list of game actions |
void |
pause()
Puts the game action scheduler to a paused state. |
void |
removeFirst()
Removes first element in the game action queue |
void |
render(java.awt.Graphics2D g)
|
void |
resume()
Resumes the game action manager, if it was in an paused state |
void |
update(long elapsedTime)
Uodates the queue of game actions |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameActionScheduler(AbstractCharacterSprite c)
c
- character this game action manager got instanciated forMethod Detail |
---|
public void pause()
public void resume()
public void add(AbstractGameAction action)
action
- game action to add to the game action queuepublic void clear()
public void removeFirst()
public AbstractGameAction getFirst()
public java.util.LinkedList<AbstractGameAction> getGameActions()
public boolean containsActionsOtherThanWalk()
public void update(long elapsedTime)
elapsedTime
- time between two framespublic void render(java.awt.Graphics2D g)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |