Example #1
0
        public LevelPlanCreator(SongElements songElements)
        {
            LevelPlan = new LevelPlan();

            this.songElements = songElements;

            distributionManager = new DistributionManager();

            reservedTimeRanges = new List <Tuple <float, float> >();
        }
Example #2
0
        public static Level GenerateLevel(SongElements songElements)
        {
            LevelPlanCreator levelPlanCreator = new LevelPlanCreator(songElements);

            levelPlanCreator.CreateLevelPlan();

            LevelPlan levelPlan = levelPlanCreator.LevelPlan;

            LevelGenerator levelGenerator = new LevelGenerator();

            Level level = levelGenerator.GenerateLevel(levelPlan);

            return(level);
        }
Example #3
0
        public void Test(SongElements songElements)
        {
            reservedTimeRanges = new List <Tuple <float, float> >();

            songElements.SortByApplicability();


            LevelElementDestination destination = LevelElementDestination.CreateChasm(-1, -1);

            float startTime = destination.LevelElementStartTime - LevelGenerationValues.TimeBeforeLevelElement;
            float endTime   = destination.LevelElementEndTime;

            if (IsTimeRangeFree(startTime, endTime))
            {
            }
        }
Example #4
0
 private void GetA(SongElements songElements)
 {
 }