forked from isxGames/ISXEVEWrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Attacker.cs
77 lines (69 loc) · 1.59 KB
/
Attacker.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EVE.ISXEVE.Extensions;
using LavishScriptAPI;
using InnerSpaceAPI;
namespace EVE.ISXEVE
{
/// <summary>
/// Attacker class
/// </summary>
public class Attacker : Entity
{
#region Constructors
/// <summary>
/// Attacker copy constructor
/// </summary>
/// <param name="copy"></param>
public Attacker(LavishScriptObject copy) : base(copy) { }
#endregion
#region Members
private Int64? _id;
public new Int64 ID
{
get
{
Tracing.SendCallback("Attacker.ID");
if (_id == null)
_id = this.GetInt64("ID");
return _id.Value;
}
}
private bool? _isCurrentlyAttacking;
/// <summary>
/// IsCurrentlyAttacking member
/// </summary>
public bool IsCurrentlyAttacking
{
get
{
if (_isCurrentlyAttacking == null)
_isCurrentlyAttacking = this.GetBool("IsCurrentlyAttacking");
return _isCurrentlyAttacking.Value;
}
}
private Jammer _toJammer;
/// Get the Jammer member of the Attacker object
public new Jammer ToJammer
{
get
{
return _toJammer ?? (_toJammer = new Jammer(GetMember("ToJammer")));
}
}
#endregion
#region Methods
/// <summary>
/// GetAttacks method
/// </summary>
/// <returns></returns>
public List<Attack> GetAttacks()
{
Tracing.SendCallback("Attacker.GetAttacks");
return Util.GetListFromMethod<Attack>(this, "GetAttacks", "attack");
}
#endregion
}
}