예제 #1
0
        public override Boolean doEvent(GameBoard gb)
        {
            ActorPlayer p = gb.player;

            if (p.row >= (gb.height - 1))
            {
                return(false);
            }

            Tile tile = gb.board[p.row + 1][p.col];

            return(tile.doMoveEvent(p, gb));
        }
예제 #2
0
        public override Boolean doEvent(GameBoard gb)
        {
            ActorPlayer p = gb.player;

            if (p.col <= 0)
            {
                return(false);
            }

            Tile tile = gb.board[p.row][p.col - 1];

            return(tile.doMoveEvent(p, gb));
        }