Package com.prineside.tdi2.systems
Class QuestSystem
java.lang.Object
com.prineside.tdi2.Registrable
com.prineside.tdi2.GameSystem
com.prineside.tdi2.systems.QuestSystem
- All Implemented Interfaces:
Disposable,KryoSerializable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfacestatic final classstatic class -
Field Summary
Fields inherited from class com.prineside.tdi2.Registrable
S -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddQuest(QuestSystem.Quest quest) booleanvoiddispose()Releases all resources of this object.voiddraw(float deltaTime, float realDeltaTime) intgetListItem(QuestSystem.Quest quest) voidPerforms the final configuration of the system.voidvoidremoveQuest(QuestSystem.Quest quest) voidremoveQuestWithDelay(QuestSystem.Quest quest, float delay) voidСохранить текущее значение квестов, которые проходятся в течение нескольких уровней.voidsetup()Performs the initial configuration of the system.voidupdate(float deltaTime) Methods inherited from class com.prineside.tdi2.GameSystem
getFastStateHash, profileUpdateMethods inherited from class com.prineside.tdi2.Registrable
isRegistered, read, setRegistered, setUnregistered, write
-
Constructor Details
-
QuestSystem
public QuestSystem()
-
-
Method Details
-
affectsGameState
public boolean affectsGameState()- Specified by:
affectsGameStatein 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
-
postSetup
public void postSetup()Description copied from class:GameSystemPerforms the final configuration of the system. At the moment of call, all systems are already loaded and setup(), all listeners are already added.- Overrides:
postSetupin classGameSystem
-
postStateRestore
public void postStateRestore()- Overrides:
postStateRestorein classGameSystem
-
addQuest
-
removeQuest
-
removeQuestWithDelay
-
getListItem
-
getBasicLevelStars
public int getBasicLevelStars() -
draw
public void draw(float deltaTime, float realDeltaTime) -
update
public void update(float deltaTime) - Overrides:
updatein classGameSystem
-
getSystemName
- Specified by:
getSystemNamein classGameSystem
-
saveBasicLevelQuestValues
public void saveBasicLevelQuestValues()Сохранить текущее значение квестов, которые проходятся в течение нескольких уровней. Если уже были сохранены, будет ошибка и значения не будут добавлены. -
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
-