-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameState.java
More file actions
31 lines (29 loc) · 820 Bytes
/
GameState.java
File metadata and controls
31 lines (29 loc) · 820 Bytes
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
public abstract class GameState {
private PokemonInfo myPokemonInfo;
private TrainerInfo myTrainerInfo;
private LocationInfo locationInfo;
public static final int EXPLORE_STATE = 1;
public static final int BATTLE_STATE = 2;
public static final int UNKNOWN_STATE = 0;
private int state;
public GameState(PokemonInfo myPokemonInfo, TrainerInfo myTrainerInfo, LocationInfo locationInfo) {
this.myPokemonInfo = myPokemonInfo;
this.myTrainerInfo = myTrainerInfo;
this.locationInfo = locationInfo;
}
public PokemonInfo getPokemonInfo() {
return myPokemonInfo;
}
public TrainerInfo getTrainerInfo() {
return myTrainerInfo;
}
public LocationInfo getLocationInfo() {
return locationInfo;
}
public int getState() {
return state;
}
public void setState(int newState) {
state = newState;
}
}