forked from stschake/eveDestiny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ball.cs
39 lines (33 loc) · 1.22 KB
/
Ball.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
namespace eveDestiny
{
public class Ball
{
public BallHeader Header { get; set; }
public ExtraBallHeader ExtraHeader { get; set;}
public BallData Data { get; set; }
public byte FormationId { get; set; }
public string Name { get; set; }
public MiniBall[] MiniBalls { get; set; }
public FollowState FollowState { get; set; }
public FormationState FormationState { get; set; }
public TrollState TrollState { get; set; }
public MissileState MissileState { get; set; }
public GotoState GotoState { get; set; }
public WarpState WarpState { get; set; }
public MushroomState MushroomState { get; set; }
public override string ToString()
{
return "(" + Header.ItemId + ((Name == null || Name == "A") ? ")" : " " + Name + ")");
}
public override bool Equals(object obj)
{
if (obj == null || GetType() != obj.GetType())
return false;
return ((Ball)obj).Header.ItemId == Header.ItemId;
}
public override int GetHashCode()
{
return Header.ItemId.GetHashCode();
}
}
}