Class com.next.gt.ActorManager
All Packages Class Hierarchy This Package Previous Next Index
Class com.next.gt.ActorManager
java.lang.Object
|
+----com.next.gt.ActorManager
- public class ActorManager
- extends Object
-
actors
-
-
owner
-
-
ActorManager(Gamelet)
-
-
addActor(Actor)
- The Actor is added to a list of Actors to be added.
-
handleBBCollision(Actor, Actor)
- Tell each Actor that they've collided with each other.
-
isActorAt(double, double)
- Test if there is an actor at a specified position.
-
isActorIn(Rectangle)
- Test if there is an actor within a specified Rectangle.
-
removeActor(Actor)
- The Actor is added to a list of Actors to be removed.
-
removeAllActors()
- Dump all references to Actors.
-
tick()
- Add/delete Actors, send current Actors a tick message, and then
perform collision detection.
owner
protected Gamelet owner
actors
public Vector actors
ActorManager
public ActorManager(Gamelet theOwner)
addActor
public void addActor(Actor theActor)
- The Actor is added to a list of Actors to be added.
removeActor
public void removeActor(Actor theActor)
- The Actor is added to a list of Actors to be removed.
removeAllActors
public void removeAllActors()
- Dump all references to Actors. This is used when a game is restarted.
isActorAt
public boolean isActorAt(double theX,
double theY)
- Test if there is an actor at a specified position.
isActorIn
public boolean isActorIn(Rectangle theRectangle)
- Test if there is an actor within a specified Rectangle.
handleBBCollision
protected void handleBBCollision(Actor a1,
Actor a2)
- Tell each Actor that they've collided with each other.
tick
public void tick()
- Add/delete Actors, send current Actors a tick message, and then
perform collision detection.
All Packages Class Hierarchy This Package Previous Next Index