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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringbooleanfinal ObjectSet<SpaceTileBonusType>Fields inherited from class com.prineside.tdi2.Registrable
S -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoiddispose()Releases all resources of this object.voidvoiddrawBuildings(OrthographicCamera camera) voiddrawStains(Batch batch) voiddrawTiles(OrthographicCamera camera) voiddrawTilesExtras(OrthographicCamera camera) voidvoidforceTilesRedraw(boolean redrawTileBase) voidpostDrawBatch(Batch batch, float deltaTime) booleanShould the update() method be rendered on the debug overlayvoidvoidsetup()Performs the initial configuration of the system.voidAlso sets the custom settingMethods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, postSetup, postStateRestore, updateMethods 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:
affectsGameStatein classGameSystem
-
profileUpdate
public boolean profileUpdate()Description copied from class:GameSystemShould the update() method be rendered on the debug overlay- Overrides:
profileUpdatein classGameSystem
-
getSystemName
- Specified by:
getSystemNamein classGameSystem
-
setup
public void setup()Description copied from class:GameSystemPerforms the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems.- Overrides:
setupin 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.DisposableReleases all resources of this object.- Specified by:
disposein interfaceDisposable- Overrides:
disposein classGameSystem
-