Package | Description |
---|---|
cell2d.space |
Modifier and Type | Method and Description |
---|---|
ThinkerObject |
ThinkerObject.getLeader()
Returns this ThinkerObject's leader, or null if it has none.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<ThinkerObject> |
ThinkerObject.getFollowers()
Returns the Set of this ThinkerObject's followers.
|
SafeIterator<ThinkerObject<T>> |
SpaceState.thinkerObjectIterator()
Returns a new Iterator over this SpaceState's list of ThinkerObjects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ThinkerObject.addFollower(ThinkerObject follower)
Adds the specified ThinkerObject as this ThinkerObject's follower if it
does not have a leader already.
|
boolean |
ThinkerObject.removeFollower(ThinkerObject follower)
Removes the specified ThinkerObject as this ThinkerObject's follower if
this ThinkerObject is its leader.
|
void |
ThinkerObject.setLeader(ThinkerObject leader)
Sets this ThinkerObject's leader to the specified ThinkerObject.
|