Package com.prineside.tdi2
Class GameSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
- All Implemented Interfaces:
Disposable,KryoSerializable
- Direct Known Subclasses:
AbilitySystem,AchievementSystem,BonusSystem,BuffSystem,CachedRenderingSystem,DamageSystem,EnemySystem,ExperienceSystem,ExplosionSystem,GameMapSelectionSystem,GameplayModSystem,GameUiSystem,GameValueSystem,HotKeySystem,InputSystem,InventorySystem,LootSystem,MapEditorSystem,MapEditorUiSystem,MapRenderingSystem,MapSystem,MinerSystem,ModifierSystem,ParticleSystem,PathfindingSystem,PathRenderingSystem,ProjectileSystem,ProjectileTrailSystem,QuestSystem,RenderSystem,ScriptSystem,SoundSystem,StateSystem,StatisticsSystem,TowerSystem,UnitSystem,WaveSystem
IMPORTANT (for me):
Do not define basic constructor (SystemName()) to avoid unnecessary actions on deserialization - put some arguments into it
-
Field Summary
Fields inherited from class com.prineside.tdi2.Registrable
S -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanvoiddispose()Releases all resources of this object.intabstract StringvoidPerforms the final configuration of the system.voidbooleanShould the update() method be rendered on the debug overlayvoidsetup()Performs the initial configuration of the system.voidupdate(float deltaTime) Methods inherited from class com.prineside.tdi2.Registrable
isRegistered, read, setRegistered, setUnregistered, write
-
Constructor Details
-
GameSystem
public GameSystem()
-
-
Method Details
-
getFastStateHash
public int getFastStateHash() -
affectsGameState
public abstract boolean affectsGameState() -
setup
public void setup()Performs the initial configuration of the system. At the moment of call, systemProvider already contains all objects of systems. -
postSetup
public void postSetup()Performs the final configuration of the system. At the moment of call, all systems are already loaded and setup(), all listeners are already added. -
postStateRestore
public void postStateRestore() -
update
public void update(float deltaTime) -
profileUpdate
public boolean profileUpdate()Should the update() method be rendered on the debug overlay -
getSystemName
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.DisposableReleases all resources of this object.- Specified by:
disposein interfaceDisposable
-