@@ -0,0 +1,1370 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage consolealiensgame;%0A%0A/**%0A *%0A * @author guberti%0A */%0A%0A/* Each turn, Aliens that did not get into a fight will have the choice to%0A * perform an action. Because there is such a large variety of things Aliens%0A * may be able to do in the future, an Alien will return an object of class%0A * Action that contains the information about the action that they wish to%0A * perform. An alien may only choose one action per turn to perform.%0A * Which action is being performed will be controlled by a actionCode%0A * that corresponds to the appropriate action. Below is a table of action%0A * codes to the English names of the actions.%0A*/%0A%0A/* ActionCode Correspondence Table (will grow as actions are added)%0A *%0A * 0 --- %22%22 ------------- Perform no action%0A * 1 --- %22Gain%22 --------- Gain energy%0A * 2 --- %22Research%22 ----- Research technology%0A * 3 --- %22Spawn%22 -------- Spawn offspring%0A*/%0Apublic class Action %7B%0A    public int code;%0A    public int power;%0A    %0A    public Action (int code, int power) %7B%0A        this.code = code;%0A        this.power = power;%0A    %7D%0A    %0A    // TODO add in code for a constructor where the name of the action and the%0A    // power are passed in, instead of a code and a power%0A%7D%0A

Add in Action class which aliens can use to perform actions