void Portal::transportBall(Ball &ball, Portal &portal) { int nextX = portal.getXPos(); int nextY = portal.getYPos(); ball.setXPos(nextX); ball.setYPos(nextY); }