Exemplo n.º 1
0
 public void setRefAct(SpectrumEnums.Act act)
 {
     refAct = act;
 }
Exemplo n.º 2
0
 /*
  * Sets currentAct depending on current Level
  * needed to know which SkySphere, Inky, Menu and Googoo texture
  * needs to be loaded
  */
 public void getCurrentActFromCurrentLevel()
 {
     switch (lastPlayedLevel)
     {
             // add other levels just with case without break
         case SpectrumEnums.Levels.LevelP_0:
         case SpectrumEnums.Levels.LevelP_1:
         case SpectrumEnums.Levels.LevelP_2:
             currentAct = SpectrumEnums.Act.Prolog;
             break;
         case SpectrumEnums.Levels.Level1_0:
         case SpectrumEnums.Levels.Level1_1:
             currentAct = SpectrumEnums.Act.Act1;
             break;
         case SpectrumEnums.Levels.Level2_0:
         case SpectrumEnums.Levels.Level2_1:
             currentAct = SpectrumEnums.Act.Act2;
             break;
         case SpectrumEnums.Levels.Level3_0:
         case SpectrumEnums.Levels.Level3_1:
             currentAct = SpectrumEnums.Act.Act3;
             break;
         case SpectrumEnums.Levels.Level4_0:
         case SpectrumEnums.Levels.Level4_1:
             currentAct = SpectrumEnums.Act.Act4;
             break;
         case SpectrumEnums.Levels.Level5_0:
         case SpectrumEnums.Levels.Level5_1:
             currentAct = SpectrumEnums.Act.Act5;
             break;
         case SpectrumEnums.Levels.LevelE_0:
             currentAct = SpectrumEnums.Act.Epilog;
             break;
     }
 }