/** * Warps the player after the player just warped * * @param x int * @param y int */ public void warpWarper(int x, int y) { setStatus(WARPING); Player p1 = ba.getPlayer(name); ba.warpTo(name, x, y); p1.updatePlayerPositionManuallyAfterWarp(x, y); setStatus(PLAYING); }
/** * Warps the player to the specified coordinates (in tiles) * * @param x int * @param y int */ public void warp(int x, int y) { setStatus(WARPING); Player p1 = ba.getPlayer(name); if (p1 == null) return; ba.shipReset(name); ba.warpTo(name, x, y); p1.updatePlayerPositionManuallyAfterWarp(x, y); setStatus(PLAYING); ba.specificPrize(name, 15); }