summaryrefslogtreecommitdiff
path: root/core/src/sk/neuromancer/sphaera/rewrite/GameState.java
blob: 6c91c2ee39a36acee455abdd7077e97781f62ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package sk.neuromancer.sphaera.rewrite;

import sk.neuromancer.sphaera.interf.Tickable;

import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.Screen;

public abstract class GameState extends InputAdapter implements Screen, Tickable{
    
    private Object[] remains;
    private boolean finished = false;
    private GameState next;
    
    public GameState(Object... remains){
        this.remains = remains;
    }
    
    public Object[] getRemains(){
        return this.remains;
    }
    
    public GameState next(){
        return this.next;
    }
    
    public boolean isFinished(){
        return this.finished;
    }
    
    protected void finish(){
        this.finished = true;
    }
    
    protected void setNext(GameState next){
        this.next = next;
    }
}