Beispiel #1
0
 public Rover(Level level, SimulationParameters parameters)
 {
     Level      = level ?? throw new ArgumentNullException(nameof(level));
     Parameters = parameters ?? throw new ArgumentNullException(nameof(parameters));
     Position   = parameters.InitialPosition;
     MovesLeft  = parameters.InitialMovesLeft;
     Power      = parameters.InitialPower;
     Adjacent   = GetAdjacentTerrain(parameters.InitialPosition);
     Accessor   = new StatusAccessor(this);
 }
        /// <summary>
        /// Aaron Usher
        /// Created: 2017/03/24
        ///
        /// Retrieves a list of statuses.
        /// </summary>
        /// <returns>A list of statuses.</returns>
        public List <string> RetrieveStatusList()
        {
            List <string> result = null;

            try
            {
                result = StatusAccessor.RetrieveStatusList();
            }
            catch (Exception)
            {
                throw;
            }
            return(result);
        }