예제 #1
0
 public bool IsExistLet(LevelAbstract level, ref Label levelNum, ref PictureBox cat1, ref PictureBox cat2)
 {
     if (level.ExistLet(cat1, cat2) && (ruinBlock3 || ruinBlock4))
     {
         return(false);
     }
     if (stayOnLet1 || stayOnLet2)
     {
         return(false);
     }
     return(level.ExistLet(cat1, cat2));
 }
예제 #2
0
 public FormGame(LevelAbstract level)
 {
     this.level = level;
     InitializeComponent();
     fontsProjects();
     fonts();
     aligmentCompanent();
     contr = new Controller(level, ref labelLevel, ref let, ref holzBlock, ref magicBlock);
     contr.Stay(ref CatStay, ref Cat1, ref Cat2);
     param     = -1;
     clickStop = false; //Не остановлено
 }
예제 #3
0
 public Controller(LevelAbstract level, ref Label levelNum, ref PictureBox let, ref PictureBox holzBlock, ref PictureBox magicBlock)
 {
     //walkLet = false;//пройдено ли препятствие
     rnd = new Random();
     levelNum.Visible = true;
     levelNum.Text    = level.levelLabel();
     this.level       = level;
     flag             = true;
     if (levelNum.Text == "Level II")
     {
         let.Visible = true;
     }
     stayOnLet1 = false;
     if (levelNum.Text == "Level III")
     {
         holzBlock.Visible = true;
         ruinBlock3        = false;
     }
     if (levelNum.Text == "Level IV")
     {
         magicBlock.Visible = true;
         ruinBlock4         = false;
     }
 }
예제 #4
0
 public bool IsExistDiamond(LevelAbstract level, ref Label levelNum, ref PictureBox cat1, ref PictureBox cat2)
 {
     return(level.completteLevel1(cat1, cat2));
 }