forked from isxGames/ISXEVEWrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FleetMember.cs
186 lines (167 loc) · 4.84 KB
/
FleetMember.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
using System;
using System.Globalization;
using EVE.ISXEVE.Extensions;
using InnerSpaceAPI;
using LavishScriptAPI;
namespace EVE.ISXEVE
{
/// <summary>
/// Wrapper for the fleetmember data type.
/// </summary>
public class FleetMember : Pilot
{
#region Constructors
/// <summary>
/// FleetMember object copy constructor.
/// </summary>
/// <param name="Copy"></param>
public FleetMember(LavishScriptObject Copy)
: base(Copy)
{
}
#endregion
#region Members
/// <summary>
/// Wrapper for Job member of fleetmember type.
/// </summary>
public string Job
{
get { return this.GetString("Job"); }
}
/// <summary>
/// Wrapper for JobID member of fleetmember type.
/// </summary>
public int JobID
{
get { return this.GetInt("JobID"); }
}
/// <summary>
/// Wrapper for Role member of fleetmember type.
/// </summary>
public string Role
{
get { return this.GetString("Role"); }
}
/// <summary>
/// Wrapper for RoleID member of fleetmember type.
/// </summary>
public int RoleID
{
get { return this.GetInt("RoleID"); }
}
/// <summary>
/// Wrapper for Boosting member of fleetmember type.
/// </summary>
public int Boosting
{
get { return this.GetInt("Boosting"); }
}
/// <summary>
/// Wrapper for SquadID member of fleetmember type.
/// </summary>
public Int64 SquadID
{
get { return this.GetInt64("SquadID"); }
}
/// <summary>
/// Wrapper for WingID member of fleetmember type.
/// </summary>
public Int64 WingID
{
get { return this.GetInt64("WingID"); }
}
#endregion
#region Methods
/// <summary>
/// Warps to zero meters of this Fleet member
/// </summary>
public bool WarpTo()
{
Tracing.SendCallback("FleetMember.WarpTo", string.Empty);
return ExecuteMethod("WarpTo");
}
/// <summary>
/// Warps to within the given distance of this fleet member
/// </summary>
public bool WarpTo(int Distance)
{
Tracing.SendCallback("FleetMember.WarpTo", Distance.ToString(CultureInfo.CurrentCulture));
return ExecuteMethod("WarpTo", Distance.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Warps the fleet to zero meters of this fleet member
/// </summary>
public bool WarpFleetTo()
{
Tracing.SendCallback("FleetMember.WarpFleetTo");
return ExecuteMethod("WarpFleetTo");
}
/// <summary>
/// Warps the fleet to within Distance meters of this fleet member
/// </summary>
public bool WarpFleetTo(int Distance)
{
Tracing.SendCallback("FleetMember.WarpFleetTo", Distance.ToString(CultureInfo.CurrentCulture));
return ExecuteMethod("WarpFleetTo", Distance.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Note: You can also 'kick' yourself from a fleet.
/// </summary>
public bool Kick()
{
Tracing.SendCallback("FleetMember.Kick");
return ExecuteMethod("Kick");
}
/// <summary>
/// Wrapper for MakeLeader method of fleetmember type.
/// </summary>
/// <returns></returns>
public bool MakeLeader()
{
Tracing.SendCallback("FleetMember.MakeLeader");
return ExecuteMethod("MakeLeader");
}
/// <summary>
/// Wrapper for Move method of fleetmember type.
/// </summary>
/// <param name="WingID"></param>
/// <param name="SquadID"></param>
/// <returns></returns>
public bool Move(Int64 WingID, Int64 SquadID)
{
Tracing.SendCallback("FleetMember.Move", WingID, SquadID);
return ExecuteMethod("Move", WingID.ToString(CultureInfo.CurrentCulture), SquadID.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Wrapper for MoveToSquadCommander method of fleetmember type.
/// </summary>
/// <param name="WingID"></param>
/// <param name="SquadID"></param>
/// <returns></returns>
public bool MoveToSquadCommander(Int64 WingID, Int64 SquadID)
{
Tracing.SendCallback("FleetMember.MoveToSquadCommander", WingID, SquadID);
return ExecuteMethod("MoveToSquadCommander", WingID.ToString(CultureInfo.CurrentCulture), SquadID.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Wrapper for MoveToWingCommander method of fleetmember type.
/// </summary>
/// <param name="WingID"></param>
/// <returns></returns>
public bool MoveToWingCommander(Int64 WingID)
{
Tracing.SendCallback("FleetMember.MoveToWingCommander", WingID.ToString(CultureInfo.CurrentCulture));
return ExecuteMethod("MoveToWingCommander", WingID.ToString(CultureInfo.CurrentCulture));
}
/// <summary>
/// Wrapper for MoveToFleetCommander method of fleetmember type.
/// </summary>
/// <returns></returns>
public bool MoveToFleetCommander()
{
Tracing.SendCallback("FleetMember.MoveToFleetCommander");
return ExecuteMethod("MoveToFleetCommander");
}
#endregion
}
}