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, RandomEncounterSystem, RenderSystem, ScriptSystem, SoundSystem, StateSystem, StatisticsSystem, TowerSystem, UnitSystem, WaveSystem

public abstract class GameSystem extends Registrable implements Disposable
IMPORTANT (for me): Do not define basic constructor (SystemName()) to avoid unnecessary actions on deserialization - put some arguments into it
  • 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

      public abstract String getSystemName()
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface Disposable