forked from DeflatedPickle/GodDrinksJava
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWorld.java
83 lines (53 loc) · 1.47 KB
/
World.java
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
package goddrinksjava;
import java.util.ArrayList;
import java.util.List;
public class World {
public final List<Thing> thingList;
private Boolean settingGod = true;
private Lovable God;
public World(Integer i) {
thingList = new ArrayList<>();
}
public void addThing(Thing thing) {
if (thing instanceof Lovable && settingGod) {
God = (Lovable) thing;
settingGod = false;
}
thingList.add(thing);
System.out.println(String.format("Added %s", thing.myName));
}
public void startSimulation() {
System.out.println("Starting simulation");
}
public void timeTravelForTwo(String period, Integer year, Thing first, Thing second) {
}
public void unite(Thing first, Thing second) {
}
public void lockThing(Thing thing) {
}
public Lovable getGod() {
return God;
}
public void procreate(Thing... things) {
}
public void makeHigh(Thing height) {
}
public void unlock(Thing thing) {
}
public void removeThing(Thing thing) {
thingList.remove(thing);
System.out.println(String.format("Removed %s", thing.myName));
}
public void announce(String... s) {
}
public void runExecution() {
}
public Boolean isExecutableBy(Thing thing) {
return false;
}
public Integer getThingIndex(Thing thing) {
return 0;
}
public void execute(Thing thing) {
}
}