Package mindustry.game
Class Universe
java.lang.Object
mindustry.game.Universe
Updates and handles state of the campaign universe. Has no relevance to other gamemodes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetLoadout(CoreBlock core) voidrunTurn()Runs possible events.intseconds()floatsecondsf()floatsecondsMod(float mod, float scale) voidsetSeconds(float seconds) intturn()voidupdate()Update planet rotations, global time and relevant state.voidUpdate regardless of whether the player is in the campaign.voidupdateLaunchResources(ItemSeq stacks) voidupdateLoadout(CoreBlock block) Updates selected loadout for future deployment.voidupdateLoadout(CoreBlock block, Schematic schem) Updates selected loadout for future deployment.voidupdateNetSeconds(int value)
-
Constructor Details
-
Universe
public Universe()
-
-
Method Details
-
updateGlobal
public void updateGlobal()Update regardless of whether the player is in the campaign. -
turn
public int turn() -
update
public void update()Update planet rotations, global time and relevant state. -
clearLoadoutInfo
public void clearLoadoutInfo() -
getLaunchResources
-
updateLaunchResources
-
updateLoadout
Updates selected loadout for future deployment. Creates an empty schematic with a single core block. -
updateLoadout
Updates selected loadout for future deployment. -
getLastLoadout
-
getLoadout
- Returns:
- the last selected loadout for this specific core type.
-
runTurn
public void runTurn()Runs possible events. Resets event counter. -
updateNetSeconds
public void updateNetSeconds(int value) -
secondsMod
public float secondsMod(float mod, float scale) -
seconds
public int seconds() -
setSeconds
public void setSeconds(float seconds) -
secondsf
public float secondsf()
-