Package com.prineside.tdi2
Class BasicLevelQuestConfig
java.lang.Object
com.prineside.tdi2.BasicLevelQuestConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
long
boolean
-
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 BasicLevelQuestConfig
fromJson
(JsonValue jsonValue, BasicLevel level) double
int
getId()
long
long
getTitle
(boolean colored, boolean appendDuringOneGame) boolean
Cached!boolean
boolean
void
setCompleted
(boolean val) void
setSavedValue
(long v) void
writeObjectStart()boolean
-
Field Details
-
id
-
scripted
public boolean scripted -
statisticsType
-
requiredValue
public long requiredValue -
level
-
prizes
-
scriptedTitle
-
duringGame
public boolean duringGame
-
-
Constructor Details
-
BasicLevelQuestConfig
public BasicLevelQuestConfig(String id, boolean scripted, StatisticsType statisticsType, long requiredValue, boolean duringGame, BasicLevel level) - Parameters:
statisticsType
- may be null
-
-
Method Details
-
getSavedValue
public long getSavedValue() -
setSavedValue
public void setSavedValue(long v) -
getExtraDustInEndless
-
toJson
writeObjectStart() -
fromJson
-
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
-