Exemple #1
0
        public void Update(Thunderstorm thunderstorm, World world, int iteration)
        {
            if (thunderstorm.IsDead() || !IsConnected())
            {
                Dispose();
                return;
            }

            thunderstorm.Name = playerName;

            state = new
                        {
                            player = thunderstorm,
                            world,
                            iteration
                        };

            while (commandQueue.Any())
            {
                ParseMessage(commandQueue.Dequeue(), thunderstorm);
            }
        }