Пример #1
0
        public static void PrintLevel(LevelModel level)
        {
            string[] levelPrintable = Composer.Compose(level.Matrix);
            var      levelState     = new StaticElement(levelPrintable);

            levelState.Print();
        }
Пример #2
0
 public Player(LevelModel level)
 {
     Level           = level;
     PlayerOneRow    = 1;
     PlayerOneColumn = 1;
     PlayerTwoRow    = Level.GetDownRightIndex();
     PlayerTwoColumn = Level.Matrix[Level.GetDownRightIndex()].Length - 2;
 }
Пример #3
0
        //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;
        }