-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDungeon.java
90 lines (64 loc) · 1.78 KB
/
Dungeon.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
package ca.spiralmachines.limbscyberpunk;
import android.content.Context;
import android.graphics.Bitmap;
import java.util.ArrayList;
public abstract class Dungeon {
protected Bitmap bgBitmap;
protected ArrayList<Building> buildings;
protected Context context;
protected int dungeonNumber = -1;
protected Bitmap floorBitmap;
protected Map map;
protected String name;
protected Bitmap wallBitmap1;
protected Bitmap wallBitmap2;
public Dungeon(Context paramContext, int paramInt) {
this.context = paramContext;
setDungeonNumber(paramInt);
this.name = "Dungeon";
this.buildings = new ArrayList<Building>();
}
public abstract void createBuildings(int paramInt);
public Bitmap getBgBitmap() {
return this.bgBitmap;
}
public ArrayList<Building> getBuildings() {
return this.buildings;
}
public int getDungeonNumber() {
return this.dungeonNumber;
}
public Bitmap getFloorBitmap() {
return this.floorBitmap;
}
public Map getMap() {
if (this.map == null)
this.map = new Map();
return this.map;
}
public String getName() {
return this.name;
}
public abstract Character getNpc(int paramInt);
public Bitmap getWallBitmap1() {
return this.wallBitmap1;
}
public void setBgBitmap(Bitmap paramBitmap) {
this.bgBitmap = paramBitmap;
}
public void setDungeonNumber(int paramInt) {
this.dungeonNumber = paramInt;
}
public void setFloorBitmap(Bitmap paramBitmap) {
this.floorBitmap = paramBitmap;
}
public void setMap(Map paramMap) {
this.map = paramMap;
}
public void setName(String paramString) {
this.name = paramString;
}
public void setWallBitmap1(Bitmap paramBitmap) {
this.wallBitmap1 = paramBitmap;
}
}