Nextrek
Diff Revisions
4
vs
11
for /Android/Minstrek/MinstrekLib/src/nextrek/minstrek/core/ButtonModel.java
|
@@ -9,6 +9,11 @@ |
9 |
9 |
|
String buttonText; |
10 |
10 |
|
String buttonPreCond; |
11 |
11 |
|
String buttonPostCond; |
|
12 |
+ |
|
|
13 |
+ |
private ButtonModel(String tid, String text) { |
|
14 |
+ |
targetId = tid; |
|
15 |
+ |
buttonText = text; |
|
16 |
+ |
} |
12 |
17 |
|
|
13 |
18 |
|
public ButtonModel(JSONObject jsonData) { |
14 |
19 |
|
this.targetId = jsonData.optString("targetId"); |
|
@@ -32,4 +37,8 @@ |
32 |
37 |
|
public String getText() { |
33 |
38 |
|
return this.buttonText; |
34 |
39 |
|
} |
|
40 |
+ |
|
|
41 |
+ |
public static ButtonModel createGameOverButton() { |
|
42 |
+ |
return new ButtonModel("init", "Game Over"); |
|
43 |
+ |
} |
35 |
44 |
|
} |