T - Type of vector, either 2D or 3D, implementing the Vector interfacepublic class DefensiveCircleFormationPattern<T extends com.badlogic.gdx.math.Vector<T>> extends java.lang.Object implements FormationPattern<T>
| Constructor and Description |
|---|
DefensiveCircleFormationPattern(float memberRadius)
Creates a
DefensiveCircleFormationPattern |
| Modifier and Type | Method and Description |
|---|---|
Location<T> |
calculateSlotLocation(Location<T> outLocation,
int slotNumber)
Returns the location of the given slot index.
|
void |
setNumberOfSlots(int numberOfSlots)
Sets the number of slots.
|
boolean |
supportsSlots(int slotCount)
Returns true if the pattern can support the given number of slots
|
public DefensiveCircleFormationPattern(float memberRadius)
DefensiveCircleFormationPatternmemberRadius - public void setNumberOfSlots(int numberOfSlots)
FormationPatternsetNumberOfSlots in interface FormationPattern<T extends com.badlogic.gdx.math.Vector<T>>numberOfSlots - the number of slots to setpublic Location<T> calculateSlotLocation(Location<T> outLocation, int slotNumber)
FormationPatterncalculateSlotLocation in interface FormationPattern<T extends com.badlogic.gdx.math.Vector<T>>public boolean supportsSlots(int slotCount)
FormationPatternsupportsSlots in interface FormationPattern<T extends com.badlogic.gdx.math.Vector<T>>slotCount - the number of slotstrue if this pattern can support the given number of slots; false othervwise.