Package | Description |
---|---|
cell2d.space |
Modifier and Type | Class and Description |
---|---|
class |
ThinkerObject<T extends CellGame>
A ThinkerObject is a MobileObject that acts like a SpaceThinker,
possessing timers, various actions in response to events, and the capacity to
act like a ThinkerGroup, even though it is not technically one.
|
Modifier and Type | Method and Description |
---|---|
MobileObject |
MobileObject.getLeader()
Returns this MobileObject's leader, or null if it has none.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<MobileObject> |
MobileObject.getFollowers()
Returns the Set of this MobileObject's followers.
|
SafeIterator<MobileObject<T>> |
SpaceState.mobileObjectIterator()
Returns a new Iterator over this SpaceState's list of MobileObjects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
MobileObject.addFollower(MobileObject follower)
Adds the specified MobileObject as this MobileObject's follower if it
does not have a leader already.
|
boolean |
MobileObject.removeFollower(MobileObject follower)
Removes the specified MobileObject as this MobileObject's follower if
this MobileObject is its leader.
|
void |
MobileObject.setLeader(MobileObject leader)
Sets this MobileObject's leader to the specified MobileObject.
|