spaceconquest.QueuedCommand.QueuedCommandList C# (CSharp) Method

QueuedCommandList() public static method

public static QueuedCommandList ( Command C, Galaxy g ) : List
C Command
g Galaxy
return List
        public static List<QueuedCommand> QueuedCommandList(Command C, Galaxy g)
        {
            List<QueuedCommand> qcs = new List<QueuedCommand>();
            int dist = ((Ship)(g.GetHex(C.start).GetGameObject())).getSpeed();
            for (int i = 0; i < dist; i++) {
                qcs.Add(new QueuedCommand(C, g, i));
            }
            return qcs;
        }