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
Modifier and TypeFieldDescriptionfinal FloatSorter
static final int
static final int
static final int
static final int
final Sort
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
freeEnemyArray
(Array<Enemy> array) void
freeMinerArray
(Array<Miner> array) void
freeTileArray
(Array<Tile> array) void
freeTowerArray
(Array<Tower> array)
-
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_MINER_ARRAYS
public static final int MAX_MINER_ARRAYS- See Also:
-
MAX_TILE_ARRAYS
public static final int MAX_TILE_ARRAYS- See Also:
-
sort
-
floatSorter
-
-
Constructor Details
-
ThreadSafeSharedHelpers
public ThreadSafeSharedHelpers()
-
-
Method Details
-
getEnemyArray
-
freeEnemyArray
-
getTowerArray
-
freeTowerArray
-
getMinerArray
-
freeMinerArray
-
getTileArray
-
freeTileArray
-