Package com.prineside.tdi2
Class BasicLevelQuestConfig
java.lang.Object
com.prineside.tdi2.BasicLevelQuestConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleancom.badlogic.gdx.utils.Array<ItemStack>longdoubleboolean -
Constructor Summary
ConstructorsConstructorDescriptionBasicLevelQuestConfig(String id, boolean scripted, StatisticsType statisticsType, long requiredValue, boolean duringGame, BasicLevel level) -
Method Summary
Modifier and TypeMethodDescriptioncreateIngameQuest(GameSystemProvider systemProvider) Создает квест для добавления в QuestSystem вначале игры.formatValueForUi(double value) formatValueForUi(double value, double requiredValue, boolean colored) static BasicLevelQuestConfigfromJson(com.badlogic.gdx.utils.JsonValue jsonValue, BasicLevel level) doubleintgetId()com.badlogic.gdx.utils.Array<ItemStack>longgetTitle(boolean colored, boolean appendDuringOneGame) booleanCached!booleanbooleanvoidsetCompleted(boolean val) voidtoJson(com.badlogic.gdx.utils.Json json) writeObjectStart()boolean
-
Field Details
-
id
-
scripted
public boolean scripted -
statisticsType
-
requiredValue
public long requiredValue -
level
-
prizes
-
scriptedTitle
-
duringGame
public boolean duringGame -
savedValue
public double savedValue
-
-
Constructor Details
-
BasicLevelQuestConfig
public BasicLevelQuestConfig(String id, boolean scripted, StatisticsType statisticsType, long requiredValue, boolean duringGame, BasicLevel level) - Parameters:
statisticsType- may be null
-
-
Method Details
-
getExtraDustInEndless
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) writeObjectStart() -
fromJson
public static BasicLevelQuestConfig fromJson(com.badlogic.gdx.utils.JsonValue jsonValue, BasicLevel level) -
createIngameQuest
Создает квест для добавления в QuestSystem вначале игры.- Returns:
- квест или null, если он должен быть проигнорирован (например, SCRIPTED, который обрабатывается вручную)
-
getId
-
isScripted
public boolean isScripted() -
getCurrentValue
- Returns:
- текущее значение квеста вне игры (для меню). Во время игры следует использовать StatisticsSystem.
-
getRequiredValue
-
getPrizes
-
formatValueForUi
-
formatValueForUi
-
isDuringGame
public boolean isDuringGame() -
isCompleted
public boolean isCompleted()Cached! -
wasEverCompleted
public boolean wasEverCompleted() -
setCompleted
public void setCompleted(boolean val) -
getTitle
-