|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.adom.jade.kernel.ActorQueue
Manages a queue of actors sorted by the points in time when they are going to act. The idea behind this class is that each map manages its own actor queue with all the actors acting on that map. The world also manages a global actor map.
| Constructor Summary | |
|---|---|
ActorQueue()
Creates a new empy queue for actors. |
|
| Method Summary | |
|---|---|
void |
addActor(Actor actor)
Adds an actor to the queue. |
boolean |
contains(Actor actor)
Checks whether a given actor is already contained in the queue. |
Actor |
getNextActor()
Returns the next actor from the queue. |
boolean |
isEmpty()
Determines whether no more actors are left in the queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActorQueue()
| Method Detail |
|---|
public void addActor(Actor actor)
actor - the actor to addpublic Actor getNextActor()
public boolean isEmpty()
public boolean contains(Actor actor)
actor - the actor to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||