コード例 #1
0
ファイル: Game.cs プロジェクト: Dimitvp/AlphaBomberman
        public static void PrintLevel(LevelModel level)
        {
            string[] levelPrintable = Composer.Compose(level.Matrix);
            var      levelState     = new StaticElement(levelPrintable);

            levelState.Print();
        }
コード例 #2
0
ファイル: Player.cs プロジェクト: Dimitvp/AlphaBomberman
 public Player(LevelModel level)
 {
     Level           = level;
     PlayerOneRow    = 1;
     PlayerOneColumn = 1;
     PlayerTwoRow    = Level.GetDownRightIndex();
     PlayerTwoColumn = Level.Matrix[Level.GetDownRightIndex()].Length - 2;
 }
コード例 #3
0
ファイル: Bomb.cs プロジェクト: Dimitvp/AlphaBomberman
        //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;
        }