| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
FloatProperty.DefaultFloat
Default float attribute for properties. 
 | 
static class  | 
FloatProperty.Factory
Factory to create FloatProperties. 
 | 
| Constructor and Description | 
|---|
FloatProperty()
Create a FloatProperty. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
float | 
get(int componentIndex)
Get the value stored in this property for the given component index. 
 | 
int | 
getCapacity()
Get the current capacity of the property. 
 | 
float[] | 
getIndexedData()
Return the backing float array of this property's IndexedDataStore. 
 | 
void | 
set(int componentIndex,
   float val)
Store val in this property for the given component index. 
 | 
void | 
setCapacity(int size)
Resize the internal storage to support indexed lookups from 0 to  
size -
 1. | 
void | 
swap(int a,
    int b)
Swap the value at indexA with indexB. 
 | 
public float[] getIndexedData()
public float get(int componentIndex)
componentIndex - The component's indexArrayIndexOutOfBoundsException - if the componentIndex is invalidpublic void set(int componentIndex,
       float val)
componentIndex - The index of the component being modifiedval - The value to store, can be nullArrayIndexOutOfBoundsException - if the componentIndex is invalidpublic void swap(int a,
        int b)
PropertyEntitySystem.decorate(Class,
 PropertyFactory).public int getCapacity()
PropertyEntitySystem.decorate(Class,
 PropertyFactory).getCapacity in interface Propertypublic void setCapacity(int size)
Propertysize -
 1.  If >size is less than the current capacity, all previous
 values with an index less than size must be preserved, and the remainder
 are discarded.  If size is greater than the current capacity, all
 previous indexed values must be preserved and the new values can be undefined.
 
 This is for internal use only to manage, and should not be called on decorated
 properties returned by EntitySystem.decorate(Class,
 PropertyFactory).setCapacity in interface Propertysize - The new capacity, will be at least 1Copyright © 2013. All Rights Reserved.