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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getLoadout
(CoreBlock core) void
runTurn()
Runs possible events.int
seconds()
float
secondsf()
float
secondsMod
(float mod, float scale) int
turn()
void
update()
Update planet rotations, global time and relevant state.void
Update regardless of whether the player is in the campaign.void
updateLaunchResources
(ItemSeq stacks) void
updateLoadout
(CoreBlock block, Schematic schem) Updates selected loadout for future deployment.void
updateNetSeconds
(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. -
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() -
secondsf
public float secondsf()
-