spaceconquest.QueuedCommand.QueuedCommand C# (CSharp) Method

QueuedCommand() public method

public QueuedCommand ( Command C, Galaxy g, int offset ) : System
C Command
g Galaxy
offset int
return System
        public QueuedCommand(Command C, Galaxy g, int offset)
        {
            agent = (Unit)g.GetHex(C.start).GetGameObject();
            try
            {
                targetHex = g.GetHex(C.target);
            }
            catch (NullReferenceException) {
                targetHex = null;
            }
            order = C.action;
            shiptype = C.shiptype;
            priority = 10*(int)order+offset;
        }

Same methods

QueuedCommand::QueuedCommand ( Ship s, Hex3D h, int offset ) : System