Beispiel #1
0
        private void UpdateActor(int index, IEnumerable <string> actions)
        {
            // Basically creating an entirely new actor.
            var actor = Actors.ElementAtOrDefault(index);

            if (actor == null)
            {
                return;
            }
            actor.Reset();
            actor.ApplyActions(actions);
            if (actor.Lander.Status == LanderStatus.Flying && MaxActions == null)
            {
                actor.ApplyFullRangeRandomActions(_randomNessProvider);
            }
        }