Class GameSystem

java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, com.esotericsoftware.kryo.KryoSerializable
Direct Known Subclasses:
AbilitySystem, AchievementSystem, BonusSystem, BuffSystem, EnemySystem, ExplosionSystem, GameplayModSystem, GameValueSystem, GraphicsSystem, InputSystem, InventorySystem, LootSystem, MapEditorSystem, MapRenderingSystem, MapSystem, MinerSystem, ModifierSystem, ParticleSystem, PathRenderingSystem, ProjectileSystem, ProjectileTrailSystem, QuestSystem, ScriptSystem, SoundSystem, StateSystem, StatisticsSystem, TowerSystem, UnitSystem, WaveSystem

public abstract class GameSystem extends Registrable implements com.badlogic.gdx.utils.Disposable
  • Constructor Details

    • GameSystem

      public GameSystem()
  • Method Details

    • getFastStateHash

      public int getFastStateHash()
    • affectsGameState

      public abstract boolean affectsGameState()
    • setup

      public void setup()
      Произвести начальную настройку системы. На момент вызова этого метода, systemProvider содержит объекты всех систем.
    • postSetup

      public void postSetup()
      Произвести окончательную настройку системы. Во время вызова, все системы загружены и установлены (setup()), все слушатели добавлены
    • postStateRestore

      public void postStateRestore()
    • update

      public void update(float deltaTime)
    • profileUpdate

      public boolean profileUpdate()
      Нужно ли учитывать время выполнения update() в Debug
    • 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 com.badlogic.gdx.utils.Disposable