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)); }
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)); }