Example #1
0
 public Level(LevelFiles files)
 {
     Files       = files;
     LevelInform = new LevelInformation(Files);
     Player      = new Player(LevelInform.StartPlayerLocation);
     GameStat    = new GameInfo();
 }
Example #2
0
 public LevelInformationExtractor(LevelInformation level, LevelFiles files)
 {
     LevelInform = level;
     Files       = files;
     LineParser  = new Dictionary <string, Action <string> >()
     {
         ["PLAT"] = ExtractPlatform,
         ["PLE"]  = ExtractPlayer,
         ["BUG"]  = ExtractBugEnemy,
         ["RTE"]  = ExtractRunTimeEnemy,
         ["END"]  = ExtractEndMark,
         ["BOS"]  = ExtractBoss,
         ["TRN"]  = ExtractTriangle,
         ["WEP"]  = ExtractWepon,
         ["STR"]  = ExtractString
     };
 }