Package com.prineside.tdi2
Class GameSystemProvider.ThreadSafeSharedHelpers
java.lang.Object
com.prineside.tdi2.GameSystemProvider.ThreadSafeSharedHelpers
- Enclosing class:
 - GameSystemProvider
 
Thread-local objects, stored in S.TSH
 Each GameSystemProvider has a single instance of this class and provides objects that were usually available as a regular static fields / singletons
 Since static fields can not be used in a multithreaded environment and ThreadLocal may get costly
- 
Field Summary
FieldsModifier and TypeFieldDescriptionfinal FloatSorterstatic final intstatic final intstatic final intfinal com.badlogic.gdx.utils.Sort - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidfreeEnemyArray(com.badlogic.gdx.utils.Array<Enemy> array) voidfreeTileArray(com.badlogic.gdx.utils.Array<Tile> array) voidfreeTowerArray(com.badlogic.gdx.utils.Array<Tower> array) com.badlogic.gdx.utils.Array<Enemy>com.badlogic.gdx.utils.Array<Tile>com.badlogic.gdx.utils.Array<Tower> 
- 
Field Details
- 
MAX_ENEMY_ARRAYS
public static final int MAX_ENEMY_ARRAYS- See Also:
 
 - 
MAX_TOWER_ARRAYS
public static final int MAX_TOWER_ARRAYS- See Also:
 
 - 
MAX_TILE_ARRAYS
public static final int MAX_TILE_ARRAYS- See Also:
 
 - 
sort
public final com.badlogic.gdx.utils.Sort sort - 
floatSorter
 
 - 
 - 
Constructor Details
- 
ThreadSafeSharedHelpers
public ThreadSafeSharedHelpers() 
 - 
 - 
Method Details
- 
getEnemyArray
 - 
freeEnemyArray
 - 
getTowerArray
 - 
freeTowerArray
 - 
getTileArray
 - 
freeTileArray
 
 -