-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSuit.java
61 lines (47 loc) · 1.49 KB
/
Suit.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
package ca.spiralmachines.limbscyberpunk;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Iterator;
public class Suit {
private int dungeonNumber;
private Hashtable<Integer, Limb> limbs = new Hashtable<Integer, Limb>();
private String name;
private int suitNumber;
public Suit(ArrayList<Limb> paramArrayList, int paramInt1, int paramInt2) {
for (byte b = 0; b < paramArrayList.size(); b++)
this.limbs.put(Integer.valueOf(b), paramArrayList.get(b));
this.name = "custom";
this.dungeonNumber = paramInt1;
this.suitNumber = paramInt2;
}
public Suit(Hashtable<Integer, Limb> paramHashtable) {
this.name = "custom";
this.dungeonNumber = -1;
}
public Suit(Hashtable<Integer, Limb> paramHashtable, String paramString, int paramInt) {
this.name = paramString;
this.dungeonNumber = paramInt;
}
public int getDungeonNumber() {
return this.dungeonNumber;
}
public ArrayList<Limb> getLimbsArrayList() {
ArrayList<Limb> arrayList = new ArrayList();
Iterator<Limb> iterator = this.limbs.values().iterator();
while (iterator.hasNext())
arrayList.add(iterator.next());
return arrayList;
}
public Hashtable<Integer, Limb> getLimbsTable() {
return this.limbs;
}
public String getName() {
return this.name;
}
public void setDungeonNumber(int paramInt) {
this.dungeonNumber = paramInt;
}
public void setName(String paramString) {
this.name = paramString;
}
}