T - Type of vector, either 2D or 3D, implementing the Vector interfacepublic abstract class ProximityBase<T extends com.badlogic.gdx.math.Vector<T>> extends java.lang.Object implements Proximity<T>
ProximityBase is the base class for any concrete proximity based on an Array of agents.Proximity.ProximityCallback<T extends com.badlogic.gdx.math.Vector<T>>| Modifier and Type | Field and Description |
|---|---|
protected com.badlogic.gdx.utils.Array<? extends Steerable<T>> |
agents
The array of the agents handled by this proximity.
|
protected Steerable<T> |
owner
The ownerof this proximity.
|
| Constructor and Description |
|---|
ProximityBase(Steerable<T> owner,
com.badlogic.gdx.utils.Array<? extends Steerable<T>> agents)
Creates a
ProximityBase for the specified owner and list of agents. |
| Modifier and Type | Method and Description |
|---|---|
com.badlogic.gdx.utils.Array<? extends Steerable<T>> |
getAgents()
Returns the array of the agents that represent potential neighbors.
|
Steerable<T> |
getOwner()
Returns the owner of this proximity.
|
void |
setAgents(com.badlogic.gdx.utils.Array<Steerable<T>> agents)
Sets the array of the agents that represent potential neighbors.
|
void |
setOwner(Steerable<T> owner)
Sets the owner of this proximity.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindNeighborsprotected Steerable<T extends com.badlogic.gdx.math.Vector<T>> owner
public Steerable<T> getOwner()
Proximitypublic void setOwner(Steerable<T> owner)
Proximitypublic com.badlogic.gdx.utils.Array<? extends Steerable<T>> getAgents()