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)); }
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; //Не остановлено }
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; } }
public bool IsExistDiamond(LevelAbstract level, ref Label levelNum, ref PictureBox cat1, ref PictureBox cat2) { return(level.completteLevel1(cat1, cat2)); }