|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PriorityQueue<B extends Block<B,E>,E extends GameEntity<B,E>>
The PriorityQueue interface is used to keep track of which entities should be updated in any given time step. This general API can be implemented in a number of different ways that provide different levels of performance.
This class is a generic that takes the general block type and the general entity type for each game.
Method Summary | |
---|---|
void |
add(E ge)
This method adds a GameEntity into the queue. |
E |
getFirst()
This method should return the first entity in the queue. |
void |
removeFirst()
This method removes the first entity from the queue assuming one is present. |
Method Detail |
---|
void add(E ge)
ge
- The game entity to be added.void removeFirst()
E getFirst()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |