-
Notifications
You must be signed in to change notification settings - Fork 0
/
simpleEntity.js
27 lines (27 loc) · 931 Bytes
/
simpleEntity.js
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
export class SimpleEntity {
constructor (name, type, x, y, length, width, dir, stats, colour, location, interact,
shake, inventory, deathTime, deathDuration, speech, closestBoss, effects, negativeEffects, gold){
this.name = name;
this.type = type;
this.x = x;
this.y = y;
this.length = length;
this.width = width;
this.dir = dir;
this.stats = stats;
this.colour = colour;
this.location = location;
this.interact = interact;
this.shake = shake;
this.deathTime = deathTime;
this.deathDuration = deathDuration;
if (this.type == "Player"){
this.inventory = inventory;
this.closestBoss = closestBoss;
}
this.speech = speech;
this.effects = effects;
this.negativeEffects = negativeEffects;
this.gold = gold;
}
}