C:\Users\buildzoid\Desktop\GameEngineOnlyBranch\src\Actions\a1example.java
 1 package Actions;
 2 
 3 //This is a basic attack class that will be used for testing type matching and impact delays. This attack will have a delay of 2 turns and is type water.
 4 
 5 import game.FightGUI;
 6 import game.MFC;
 7 
 8 // tti: Time To Impact this controls when an attack actually does damage
 9 // trgt: TaRGeT this is what defines what an attack is supposed to hit
10 // fs: Firing Speed the initial speed of when the attack was 
11 public class a1example {
12     public static String gname(){
13         return "Water burst";
14     }
15     
16     public static String gdescription(){;
17         return "The user summons humidity from the surrounds\n"
18                 + "and then sends it at the enemy at high speed.";
19     }
20     
21     public static void dothing(int tti, int trgt, int caster){
22         // all attacks intial get sent a 0 value. Timed attacks modify this value according to what they need to trigger
23         if (tti == 0) { // initialization of the attack including the setting of the TTI
24                              //ID tti trgt caster
25             FightGUI.addAction(1, 2, trgt, caster);
26         }else if (tti > 1){
27                 FightGUI.addAction(1, 1, trgt, caster);
28         } else if (tti == 1){
29             MFC.EIDs[trgt].HPmod += 100;
30         }
31     }
32     
33     public static int gAOE(){
34         // Howmany enemies can be hit by an attack
35         return 1;
36     }
37 }
38