-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuest.java
103 lines (76 loc) · 2.29 KB
/
Quest.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
package ca.spiralmachines.limbscyberpunk;
import java.util.Hashtable;
public abstract class Quest {
private int destinationX;
private int destinationY;
private Dungeon dungeon;
private Character giver;
private Hashtable<String, String> messages = new Hashtable<String, String>();
private int rewardTypeId;
private int typeId;
public Quest(int paramInt1, Dungeon paramDungeon, int paramInt2, int paramInt3, Character paramCharacter, int paramInt4) {
this.typeId = paramInt1;
this.dungeon = paramDungeon;
this.destinationX = paramInt2;
this.destinationY = paramInt3;
this.giver = paramCharacter;
this.rewardTypeId = paramInt4;
createMessages();
}
private void createMessages() {
setStartMessage("You have accepted a quest.");
setWinMessage("You won this quest.");
setFailureMessage("You failed this quest. Good job.");
}
public int getDestinationX() {
return this.destinationX;
}
public int getDestinationY() {
return this.destinationY;
}
public Dungeon getDungeon() {
return this.dungeon;
}
public Character getGiver() {
return this.giver;
}
public Hashtable<String, String> getMessages() {
return this.messages;
}
public int getRewardTypeId() {
return this.rewardTypeId;
}
public int getTypeId() {
return this.typeId;
}
public void setDestinationX(int paramInt) {
this.destinationX = paramInt;
}
public void setDestinationY(int paramInt) {
this.destinationY = paramInt;
}
public void setDungeon(Dungeon paramDungeon) {
this.dungeon = paramDungeon;
}
public void setFailureMessage(String paramString) {
this.messages.put("failureMessage", paramString);
}
public void setGiver(Character paramCharacter) {
this.giver = paramCharacter;
}
public void setMessages(Hashtable<String, String> paramHashtable) {
this.messages = paramHashtable;
}
public void setRewardTypeId(int paramInt) {
this.rewardTypeId = paramInt;
}
public void setStartMessage(String paramString) {
this.messages.put("startMessage", paramString);
}
public void setTypeId(int paramInt) {
this.typeId = paramInt;
}
public void setWinMessage(String paramString) {
this.messages.put("winMessage", paramString);
}
}