Package com.prineside.tdi2
Class BasicLevel
java.lang.Object
com.prineside.tdi2.BasicLevel
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
boolean
float
int
boolean
boolean
boolean
final com.badlogic.gdx.utils.Array<Requirement>
int
final int[]
final com.badlogic.gdx.utils.Array<BasicLevelQuestConfig>
int
final com.badlogic.gdx.utils.Array<Requirement>
int
final com.badlogic.gdx.utils.Array<BasicLevel.WaveQuest>
-
Method Summary
Modifier and TypeMethodDescriptionstatic BasicLevel
static BasicLevel
createNewFromFullJson
(String jsonStr) static BasicLevel
fromJson
(com.badlogic.gdx.utils.JsonValue levelJson) com.badlogic.gdx.utils.Array<EnemyType>
float
getMap()
com.badlogic.gdx.graphics.g2d.TextureRegion
int[]
getWaveQuest
(String questId) boolean
void
void
void
toJson
(com.badlogic.gdx.utils.Json json) writeObjectStart()toString()
-
Field Details
-
name
-
stageName
-
stagePosition
public int stagePosition -
forcedDifficulty
-
seed
public int seed -
fastForwardFrame
public int fastForwardFrame -
hasLeaderboards
public boolean hasLeaderboards -
customWaves
public boolean customWaves -
fixedQuests
public boolean fixedQuests -
isBonus
public boolean isBonus -
dailyQuest
public boolean dailyQuest -
openRequirements
-
showRequirements
-
priceInMoney
public int priceInMoney -
priceInResources
public final int[] priceInResources -
quests
-
waveQuests
-
enemyWaves
-
difficultyExpectedPlaytime
public float difficultyExpectedPlaytime -
bonusStagesConfig
-
-
Method Details
-
isPurchased
public boolean isPurchased() -
clone
-
createNew
-
saveToDisk
public void saveToDisk() -
toJsonStringEverything
-
toJson
public void toJson(com.badlogic.gdx.utils.Json json) writeObjectStart() -
createNewFromFullJson
-
fromJson
-
getStarMilestoneWaves
public int[] getStarMilestoneWaves()- Returns:
- 3 номера волны, за которые дают звезды (может быть 0 - тогда звезды нет)
-
getDifficultyExpectedPlaytime
public float getDifficultyExpectedPlaytime() -
reloadMap
-
getMap
-
setMap
-
getAllowedEnemies
-
getPreview
public com.badlogic.gdx.graphics.g2d.TextureRegion getPreview() -
getQuest
-
toString
-
getWaveQuest
-