-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLimbFactory.java
84 lines (75 loc) · 3.23 KB
/
LimbFactory.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
package ca.spiralmachines.limbscyberpunk;
import android.content.Context;
import android.graphics.BitmapFactory;
import java.util.ArrayList;
public class LimbFactory {
static ArrayList<Limb> getAllLimbs(Context paramContext, int paramInt) {
ArrayList<Limb> arrayList = new ArrayList();
arrayList.add(limb000(paramContext, paramInt));
arrayList.add(limb001(paramContext, paramInt));
return arrayList;
}
static Limb getLimb(Context paramContext, int paramInt1, int paramInt2) {
return (paramInt1 == 0) ? limb000(paramContext, paramInt2) : ((paramInt1 == 1) ? limb001(paramContext, paramInt2) : ((paramInt1 == 2) ? limb002(paramContext, paramInt2) : ((paramInt1 == 3) ? limb003(paramContext, paramInt2) : ((paramInt1 == 4) ? limb004(paramContext, paramInt2) : null))));
}
static ArrayList<Limb> getTestLimbs(Context paramContext, int paramInt) {
ArrayList<Limb> arrayList = new ArrayList();
arrayList.add(limb000(paramContext, paramInt));
arrayList.add(limb001(paramContext, paramInt));
arrayList.add(limb002(paramContext, paramInt));
arrayList.add(limb003(paramContext, paramInt));
arrayList.add(limb004(paramContext, paramInt));
return arrayList;
}
static Limb limb000(Context paramContext, int paramInt) {
ArrayList<Joint> arrayList = new ArrayList();
arrayList.add(new Joint(104, 140));
Limb limb = new Limb(0, paramInt, BitmapFactory.decodeResource(paramContext.getResources(), 2131165302), "Steam Head", arrayList);
limb.setIntelligence(10);
limb.setBaseHp(5);
limb.setCurrentHp(5);
limb.setDamage(5);
return limb;
}
static Limb limb001(Context paramContext, int paramInt) {
ArrayList<Joint> arrayList = new ArrayList();
arrayList.add(new Joint(129, 124));
Limb limb = new Limb(1, paramInt, BitmapFactory.decodeResource(paramContext.getResources(), 2131165303), "Bike Wheel", arrayList);
limb.setIntelligence(10);
limb.setBaseHp(7);
limb.setCurrentHp(7);
limb.setDamage(3);
return limb;
}
static Limb limb002(Context paramContext, int paramInt) {
ArrayList<Joint> arrayList = new ArrayList();
arrayList.add(new Joint(97, 111));
Limb limb = new Limb(2, paramInt, BitmapFactory.decodeResource(paramContext.getResources(), 2131165304), "Car Wheel", arrayList);
limb.setIntelligence(4);
limb.setBaseHp(7);
limb.setCurrentHp(7);
limb.setDamage(9);
return limb;
}
static Limb limb003(Context paramContext, int paramInt) {
ArrayList<Joint> arrayList = new ArrayList();
arrayList.add(new Joint(106, 180));
Limb limb = new Limb(3, paramInt, BitmapFactory.decodeResource(paramContext.getResources(), 2131165305), "Dog Head", arrayList);
limb.setIntelligence(6);
limb.setBaseHp(7);
limb.setCurrentHp(7);
limb.setDamage(7);
return limb;
}
static Limb limb004(Context paramContext, int paramInt) {
ArrayList<Joint> arrayList = new ArrayList();
arrayList.add(new Joint(99, 154));
arrayList.add(new Joint(100, 38));
Limb limb = new Limb(4, paramInt, BitmapFactory.decodeResource(paramContext.getResources(), 2131165306), "Vertical Pipe", arrayList);
limb.setIntelligence(2);
limb.setBaseHp(9);
limb.setCurrentHp(9);
limb.setDamage(9);
return limb;
}
}