-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Enemy.cs
57 lines (53 loc) · 1.26 KB
/
Enemy.cs
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
using Decal.Adapter.Wrappers;
using System;
using System.Collections.Generic;
namespace DrunkenBoxing {
public enum Race
{
None = -1,
Olthoi = 1,
Banderling = 2,
Drudge = 3,
Lugian = 5,
Tumerok = 6,
Golem = 13,
Undead = 14,
Tusker = 16,
Virindi = 19,
Wisp = 20,
Shadow = 22,
Zefir = 29,
Skeleton = 30,
Human = 31,
Niffis = 45,
Elemental = 61,
Burun = 75,
Ghost = 77,
Viamontian = 83,
Mukkir = 89,
Anekshay = 101,
}
public enum Priority {
Rage,
Focus,
Normal,
Last,
Never,
}
public class Enemy {
public int id;
public string name;
public Race race;
public Priority priority;
public bool boss;
public Position position;
public double distanceFromPlayer;
public Enemy(WorldObject e) {
this.id = e.Id;
this.name = e.Name;
this.race = (Enum.IsDefined(typeof(Race), e.LongKeys[2]) ? (Race)e.LongKeys[2] : Race.None);
this.priority = Priority.Normal;
this.boss = Settings.instance.bosses.Contains(this.name);
}
}
}