-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwoman1_subgame.go
91 lines (68 loc) · 1.93 KB
/
woman1_subgame.go
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package main
import "github.com/seletskiy/go-android-rpc/android"
type Woman1Subgame struct {
Subgame
GlobalLocations map[string]Location
}
func (subgame Woman1Subgame) GetButtonTitle() string {
return "Woman1 Title"
}
func (subgame Woman1Subgame) GetLayoutName() string {
return "main_layout"
}
func (subgame Woman1Subgame) Enter(state *State) {
defer android.PanicHandler()
subgame.Subgame.Enter(state)
locations := map[string]Location{
"1": &BaseLocation{
Description: `<p><b>It is pitch black.</b></p>`,
},
"2": &BaseLocation{
ButtonTitle: "Try to move",
Description: `<p>You feel different. Time goes different.</p><p>You feel your mind wandering.</p>`,
},
"3": &BaseLocation{
ButtonTitle: `"Who are you?"`,
Description: `<p>"You? Things? Cold. Solid. Energy. Dark."</p>`,
},
"4.1": &BaseLocation{
ButtonTitle: "Play.",
Description: "yaaaaa",
},
"4.2": &BaseLocation{
ButtonTitle: "Toys.",
Description: "huyaaaa",
},
"4.3": &BaseLocation{
ButtonTitle: "Mother.",
Description: "mama-ama-criminal",
},
"4.4": &BaseLocation{
ButtonTitle: "Father.",
Description: "where is mother?",
},
"5": &BaseLocation{
ButtonTitle: "Run away",
Description: "<p>It is pitch black. There is nowhere to run.</p>",
},
"6": &BaseLocation{
ButtonTitle: `End`,
Description: `<p>Father takes you</p>`,
},
}
locations["1"].Link(locations["2"])
locations["2"].Link(locations["3"])
locations["3"].Link(locations["4.1"])
locations["3"].Link(locations["4.2"])
locations["3"].Link(locations["4.3"])
locations["3"].Link(locations["4.4"])
locations["4.1"].Link(locations["5"])
locations["4.2"].Link(locations["5"])
locations["4.3"].Link(locations["5"])
locations["4.4"].Link(locations["5"])
locations["5"].Link(locations["6"])
locations["6"].Link(subgame.GlobalLocations["bunk"])
subgame.SetLayoutName("main_layout")
subgame.SetLocation(locations["1"])
subgame.Start()
}