public static void PrintLevel(LevelModel level) { string[] levelPrintable = Composer.Compose(level.Matrix); var levelState = new StaticElement(levelPrintable); levelState.Print(); }
public Player(LevelModel level) { Level = level; PlayerOneRow = 1; PlayerOneColumn = 1; PlayerTwoRow = Level.GetDownRightIndex(); PlayerTwoColumn = Level.Matrix[Level.GetDownRightIndex()].Length - 2; }
//public static bool playerOneBombReady = true; //public static bool playerTwoBombReady = true; //public static Bomb playerOneBomb; //public static Bomb playerTwoBomb; public Bomb(int row, int column, LevelModel level, int range = 3) { this.Row = row; this.Column = column; this.Level = level; this.Range = range; this.Timer = new Stopwatch(); this.Timer.Start(); this.Clock = GameSettings.BombClock; //miliseconds to boom this._bombChar = GameChars.BombChar; }