-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAbility.cs
356 lines (310 loc) · 12.2 KB
/
Ability.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
using System;
using LavishScriptAPI;
namespace Vanguard.ISXVG
{
/// <summary>
///
/// </summary>
public enum AbilityType
{
/// <summary>
///
/// </summary>
NULL = -1,
/// <summary>
///
/// </summary>
Informational,
/// <summary>
///
/// </summary>
CombatArt,
/// <summary>
///
/// </summary>
Spell,
/// <summary>
///
/// </summary>
RangedAttack,
/// <summary>
///
/// </summary>
BattleCry,
/// <summary>
///
/// </summary>
DefensiveManeuver,
/// <summary>
///
/// </summary>
Song
}
//public enum TargetType
//{
// NULL = -1,
// None,
// Self,
// Offensive,
// Defensive,
// Group,
// Ally
//}
//public enum SongType
//{
// NULL = -1,
// Shout,
// Melody,
// Embellishment,
// Lyric,
// Chorus,
// Rest
//}
/// <summary>
///
/// </summary>
public class Ability : LavishScriptObject
{
/// <summary>
/// Initializes a new instance of the <see cref="Ability"/> class.
/// </summary>
/// <param name="Obj">The object ot use as a copy.</param>
public Ability(LavishScriptObject Obj)
: base(Obj) {}
/// <summary>
/// Initializes a new instance of the <see cref="Ability"/> class.
/// </summary>
public Ability()
: base(LavishScript.Objects.GetObject("Ability")) {}
/// <summary>
/// Returns the name of this <see cref="Ability"/>.
/// </summary>
public string Name { get { return GetMember<string>("Name"); } }
/// <summary>
/// Gets the ID of this <see cref="Ability"/>.
/// </summary>
/// <value>The ID.</value>
public uint ID { get { return GetMember<uint>("ID"); } }
/// <summary>
/// Returns the description for this <see cref="Ability"/>.
/// </summary>
public string Description { get { return GetMember<string>("Description"); } }
/// <summary>
/// Returns the cast time for this <see cref="Ability"/>
/// </summary>
public float CastTime { get { return GetMember<float>("CastTime"); } }
/// <summary>
/// Returns the recovery time for this <see cref="Ability"/> in seconds.
/// </summary>
public float RecoveryTime { get { return GetMember<float>("RecoveryTime"); } }
/// <summary>
/// Returns this <see cref="Ability"/>'s range.
/// </summary>
public int Range { get { return GetMember<int>("Range"); } }
/// <summary>
/// Returns a <see cref="AbilityType"/> corresponding to this <see cref="Ability"/>s type.
/// </summary>
public AbilityType AbilityType
{
get
{
switch (GetMember<string>("Type"))
{
case "Informational":
return AbilityType.Informational;
case "Combat Art":
return AbilityType.CombatArt;
case "Spell":
return AbilityType.Spell;
case "Ranged Attack":
return AbilityType.RangedAttack;
case "Battle Cry":
return AbilityType.BattleCry;
case "Defensive Maneuver":
return AbilityType.DefensiveManeuver;
case "Song":
return AbilityType.Song;
default:
return AbilityType.NULL;
}
}
}
/// <summary>
/// Returns the type of this ability in string format.
/// </summary>
[Obsolete("Use AbilityType instead.")]
public string Type { get { return GetMember<string>("Type"); } }
/// <summary>
/// Gets the type of the song.
/// </summary>
/// <value>The type of the song.</value>
public string SongType { get { return GetMember<string>("SongType"); } }
/// <summary>
/// Gets the type of the target.
/// </summary>
/// <value>The type of the target.</value>
public string TargetType { get { return GetMember<string>("TargetType"); } }
/// <summary>
/// Gets a value indicating whether this instance is a chain.
/// </summary>
/// <value><c>true</c> if this instance is a chain; otherwise, <c>false</c>.</value>
public bool IsChain { get { return GetMember<bool>("IsChain"); } }
/// <summary>
/// Gets a value indicating whether this <seealso cref="Ability"/> is counter.
/// </summary>
/// <value>
/// <c>true</c> if this instance is counter; otherwise, <c>false</c>.
/// </value>
public bool IsCounter { get { return GetMember<bool>("IsCounter"); } }
/// <summary>
/// Gets a value indicating whether this <seealso cref="Ability"/> is rescue.
/// </summary>
/// <value>
/// <c>true</c> if this <seealso cref="Ability"/> is rescue; otherwise, <c>false</c>.
/// </value>
public bool IsRescue { get { return GetMember<bool>("IsRescue"); } }
/// <summary>
/// Gets a value indicating whether this <seealso cref="Ability"/> is offensive.
/// </summary>
/// <value>
/// <c>true</c> if this <seealso cref="Ability"/> is offensive; otherwise, <c>false</c>.
/// </value>
public bool IsOffensive { get { return GetMember<bool>("IsOffensive"); } }
/// <summary>
/// Gets the triggered countdown.
/// </summary>
/// <value>The triggered countdown.</value>
public float TriggeredCountdown { get { return GetMember<float>("TriggeredCountdown"); } }
/// <summary>
/// Gets the level granted.
/// </summary>
/// <value>The level granted.</value>
public int LevelGranted { get { return GetMember<int>("LevelGranted"); } }
/// <summary>
/// Gets the health cost.
/// </summary>
/// <value>The health cost.</value>
public int HealthCost { get { return GetMember<int>("HealthCost"); } }
/// <summary>
/// Gets the health cost per second.
/// </summary>
/// <value>The health cost per second.</value>
public int HealthCostPerSecond { get { return GetMember<int>("HealthCostPerSecond"); } }
/// <summary>
/// Gets the energy cost.
/// </summary>
/// <value>The energy cost.</value>
public int EnergyCost { get { return GetMember<int>("EnergyCost"); } }
/// <summary>
/// Gets the energy cost per second.
/// </summary>
/// <value>The energy cost per second.</value>
public int EnergyCostPerSecond { get { return GetMember<int>("EnergyCostPerSecond"); } }
/// <summary>
/// Gets the endurance cost.
/// </summary>
/// <value>The endurance cost.</value>
public int EnduranceCost { get { return GetMember<int>("EnduranceCost"); } }
/// <summary>
/// Gets the endurance cost per second.
/// </summary>
/// <value>The endurance cost per second.</value>
public int EnduranceCostPerSecond { get { return GetMember<int>("EnduranceCostPerSecond"); } }
/// <summary>
/// Gets the time remaining.
/// </summary>
/// <value>The time remaining.</value>
public float TimeRemaining { get { return GetMember<float>("TimeRemaining"); } }
/// <summary>
/// Gets a value indicating whether this <see cref="Ability"/> is toggled.
/// </summary>
/// <value><c>true</c> if toggled; otherwise, <c>false</c>.</value>
public bool Toggled { get { return GetMember<bool>("Toggled"); } }
/// <summary>
/// Gets a value indicating whether [target in range].
/// </summary>
/// <value><c>true</c> if [target in range]; otherwise, <c>false</c>.</value>
public bool TargetInRange { get { return GetMember<bool>("TargetInRange"); } }
/// <summary>
/// Gets a value indicating whether this <seealso cref="Ability"/> is ready.
/// </summary>
/// <value>
/// <c>true</c> if this <seealso cref="Ability"/> is ready; otherwise, <c>false</c>.
/// </value>
public bool IsReady { get { return GetMember<bool>("IsReady"); } }
/// <summary>
/// Gets the special points cost.
/// </summary>
/// <value>The special points cost.</value>
public int SpecialPointsCost { get { return GetMember<int>("SpecialPointsCost"); } }
/// <summary>
/// Gets the special points cost per second.
/// </summary>
/// <value>The special points cost per second.</value>
public int SpecialPointsCostPerSecond { get { return GetMember<int>("SpecialPointsCostPerSecond"); } }
/// <summary>
/// Gets the phenomena points cost.
/// </summary>
/// <value>The phenomena points cost.</value>
public int PhenomenaPointsCost { get { return GetMember<int>("PhenomenaPointsCost"); } }
/// <summary>
/// Gets the phenomena points cost per second.
/// </summary>
/// <value>The phenomena points cost per second.</value>
public int PhenomenaPointsCostPerSecond { get { return GetMember<int>("PhenomenaPointsCostPerSecond"); } }
/// <summary>
/// Gets the virtue points cost.
/// </summary>
/// <value>The virtue points cost.</value>
public int VirtuePointsCost { get { return GetMember<int>("VirtuePointsCost"); } }
/// <summary>
/// Gets the virtue points cost per second.
/// </summary>
/// <value>The virtue points cost per second.</value>
public int VirtuePointsCostPerSecond { get { return GetMember<int>("VirtuePointsCostPerSecond"); } }
/// <summary>
/// Gets the jin cost.
/// </summary>
/// <value>The jin cost.</value>
public int JinCost { get { return GetMember<int>("JinCost"); } }
/// <summary>
/// Gets the jin cost per second.
/// </summary>
/// <value>The jin cost per second.</value>
public int JinCostPerSecond { get { return GetMember<int>("JinCostPerSecond"); } }
/// <summary>
/// Gets the school.
/// </summary>
/// <value>The school.</value>
public string School { get { return GetMember<string>("School"); } }
/// <summary>
/// Gets the blood union required.
/// </summary>
/// <value>The blood union required.</value>
public int BloodUnionRequired { get { return GetMember<int>("BloodUnionRequired"); } }
/// <summary>
/// Gets the requirements.
/// </summary>
/// <value>The requirements.</value>
public string Requirements { get { return GetMember<string>("Requirements"); } }
/// <summary>
/// Gets the restrictions.
/// </summary>
/// <value>The restrictions.</value>
public string Restrictions { get { return GetMember<string>("Restrictions"); } }
/// <summary>
/// Uses this <see cref="Ability"/>.
/// </summary>
/// <returns></returns>
public bool Use()
{
return ExecuteMethod("Use");
}
/// <summary>
/// </summary>
public string WeaknessCreate { get { return GetMember<string>("WeaknessCreate"); } }
/// <summary>
/// </summary>
public string WeaknessExploit { get { return GetMember<string>("WeaknessExploit"); } }
}
}