|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBeastManager
public class BeastManager
Manages a simulation group of beasts, handling their updating and providing appropriate information to their pack finders.
Constructor Summary | |
---|---|
BeastManager(acm.graphics.GContainer container)
Create a new beast manager for the given container. |
Method Summary | |
---|---|
void |
addBeast(Beast beast)
Add the given beast to the set of managed beasts. |
Beast[] |
getBeasts()
Provide a list of the beasts managed. |
void |
removeBeast(Beast beast)
Remove the given beast from the set of managed beasts. |
void |
updateBeasts()
Update the state of all beasts in the simulation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeastManager(acm.graphics.GContainer container)
The container is used within BeastManager to store the set of beasts.
container
- a non-null container that's ready for a proliferation of
beastsMethod Detail |
---|
public void addBeast(Beast beast)
beast
- a non-null beast to addpublic void removeBeast(Beast beast)
beast
- a non-null beast to removepublic Beast[] getBeasts()
getBeasts
in interface IBeastProvider
public void updateBeasts()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |