spaceconquest.Command.Command C# (CSharp) Method

Command() public method

public Command ( Hex3D sh, Hex3D th, System.Action a ) : System
sh Hex3D
th Hex3D
a System.Action
return System
        public Command(Hex3D sh, Hex3D th, Action a)
        {
            if( sh != null) start = new Tuple<int,int,int>(sh.hexgrid.index,sh.x,sh.y);
            if (th != null) target = new Tuple<int, int, int>(th.hexgrid.index, th.x, th.y);
            action = a;
        }

Same methods

Command::Command ( Hex3D sh, Hex3D th, System.Action a, ShipType s ) : System