Package com.prineside.tdi2.systems
Class MapRenderingSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.MapRenderingSystem
- All Implemented Interfaces:
Disposable
,KryoSerializable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
boolean
final ObjectSet<SpaceTileBonusType>
Fields inherited from class com.prineside.tdi2.Registrable
S
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
dispose()
Releases all resources of this object.void
void
drawBuildings
(OrthographicCamera camera) void
drawStains
(Batch batch) void
drawTiles
(OrthographicCamera camera) void
drawTilesExtras
(OrthographicCamera camera) void
void
forceTilesRedraw
(boolean redrawTileBase) void
postDrawBatch
(Batch batch, float deltaTime) boolean
Should the update() method be rendered on the debug overlayvoid
void
setup()
Performs the initial configuration of the system.void
Also sets the custom settingMethods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, update
Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, read, setRegistered, setUnregistered, write
-
Field Details
-
CACHED_GFX_LAYER_TILES
- See Also:
-
CACHED_GFX_LAYER_TILE_EXTRAS
- See Also:
-
CACHED_GFX_LAYER_BUILDINGS
- See Also:
-
spaceTileBonusesToDrawColoredOnFreeTiles
-
drawMapGrid
public boolean drawMapGrid
-
-
Constructor Details
-
MapRenderingSystem
public MapRenderingSystem()
-
-
Method Details
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameState
in classGameSystem
-
profileUpdate
public boolean profileUpdate()Description copied from class:GameSystem
Should the update() method be rendered on the debug overlay- Overrides:
profileUpdate
in classGameSystem
-
getSystemName
- Specified by:
getSystemName
in classGameSystem
-
setup
public void setup()Description copied from class:GameSystem
Performs the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.- Overrides:
setup
in classGameSystem
-
switchMapDrawMode
public void switchMapDrawMode()Also sets the custom setting -
getDrawMode
-
forceBuildingsRedraw
public void forceBuildingsRedraw() -
forceTilesRedraw
public void forceTilesRedraw(boolean redrawTileBase) -
setDrawMode
-
drawTiles
-
drawBuildings
-
drawStains
-
drawBatch
-
postDrawBatch
-
drawTilesExtras
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfaceDisposable
- Overrides:
dispose
in classGameSystem
-