spaceconquest.SlaveDriver.Receive C# (CSharp) Method

Receive() public method

public Receive ( List cl ) : void
cl List
return void
        public void Receive(List<Command> cl)
        {
            Console.WriteLine("Received " + cl.Count + " Commands");
            cl.Reverse(); //reverse the list because we want the most recent command to each unit to be the one recorded
            foreach (Command c in cl)
            {
                commands.Add(c);
            }
        }