T- Type of vector, either 2D or 3D, implementing the
public interface FormationPattern<T extends com.badlogic.gdx.math.Vector<T>>
FormationPatterninterface represents the shape of a formation and generates the slot offsets, relative to its anchor point. Since formations can be scalable the pattern must be able to determine if a given number of slots is supported.
Each particular pattern (such as a V, wedge, circle) needs its own instance of a class that implements this
|Modifier and Type||Method and Description|
Returns the location of the given slot index.
Sets the number of slots.
Returns true if the pattern can support the given number of slots
void setNumberOfSlots(int numberOfSlots)
numberOfSlots- the number of slots to set
boolean supportsSlots(int slotCount)
slotCount- the number of slots
trueif this pattern can support the given number of slots;