Esempio n. 1
0
        public static Entity BuildRandomLevelledEntity(IRandom rand, string designation, int level)
        {
            switch (level)
            {
            case 0:
                return(EntityBuilder_Enemies.BuildLevel0Entity(rand, designation));

            case 1:
                return(EntityBuilder_Enemies.BuildLevel1Entity(rand, designation));

            case 2:
                return(EntityBuilder_Enemies.BuildLevel2Entity(rand, designation));

            default:
                throw new InvalidOperationException();
            }
        }
Esempio n. 2
0
        public static Entity BuildLevel0Entity(IRandom rand, string designation)
        {
            return(EntityBuilder_Enemies.BuildRentACopBaton(designation));

            /*
             * var selection = rand.Next(4);
             * switch (selection)
             * {
             *  case 0:
             *      return EntityBuilderEnemies.BuildRentACop(designation);
             *  case 1:
             *      return EntityBuilderEnemies.BuildRentACopCowardly(designation);
             *  case 2:
             *      return EntityBuilderEnemies.BuildRentACopBrave(designation);
             *  case 3:
             *      return EntityBuilderEnemies.BuildRentACopBaton(designation);
             *  case 4:
             *      return EntityBuilderEnemies.BuildRentACopBatonCowardly(designation);
             *  default:
             *      throw new InvalidOperationException();
             * }
             */
        }