forked from JHaack4/CaveGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeki.java
37 lines (29 loc) · 783 Bytes
/
Teki.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
class Teki {
String tekiName;
String itemInside = null;
int fallType;
int min;
int weight;
int type;
int capType;
SpawnPoint spawnPoint = null;
float posX, posY, posZ, ang;
int numToSpawn = 1; // used only as a return value for getRandCapTeki
int spawnListIdx = -1;
Teki tekiInfoSpawnedFrom = null;
boolean isInTheWay = false;
Teki spawn(MapUnit m, SpawnPoint sp) {
Teki t = new Teki();
t.tekiName = tekiName;
t.itemInside = itemInside;
t.fallType = fallType;
t.min = min;
t.weight = weight;
t.type = type;
t.capType = type;
t.spawnPoint = sp;
t.spawnListIdx = spawnListIdx;
t.tekiInfoSpawnedFrom = this;
return t;
}
}