mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-25 22:58:47 +07:00
Structure
This commit is contained in:
parent
a65592d511
commit
1cb01af77b
@ -1,21 +1,32 @@
|
||||
package io.anuke.mindustry.game;
|
||||
|
||||
import io.anuke.arc.*;
|
||||
import io.anuke.arc.math.*;
|
||||
|
||||
/** Handles tutorial state. */
|
||||
public class Tutorial{
|
||||
private TutorialStage stage = TutorialStage.values()[0];
|
||||
public TutorialStage stage = TutorialStage.values()[0];
|
||||
|
||||
/** Resets tutorial state. */
|
||||
public void reset(){
|
||||
stage = TutorialStage.values()[0];
|
||||
}
|
||||
|
||||
/** Goes on to the next tutorial step. */
|
||||
public void next(){
|
||||
|
||||
stage = TutorialStage.values()[Mathf.clamp(stage.ordinal() + 1, 0, TutorialStage.values().length)];
|
||||
}
|
||||
|
||||
|
||||
public enum TutorialStage{
|
||||
intro;
|
||||
|
||||
public final String text;
|
||||
|
||||
TutorialStage(){
|
||||
text = Core.bundle.get("tutorial." + name());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user