@Test public void testPlayerYPosition() { initialise(); Mount mount = new BatMount(); Player player = new Player(); world.debugReset(); world.addEntity(player); player.setPosition(20, 20); world.addEntity(mount); mount.setPosition(20, 20); world.gameLoop(1); PlayerMountActions.toggleMount(player); PlayerMountActions.positionPlayer(player); assertEquals((int) (mount.getY() + mount.getSaddleY()), (int) player.getY()); }
public float getSaddleY() { return saddleY; }
Mount extends BasicMovingEntity { public float getSaddleY() { return saddleY; } }
Mount extends BasicMovingEntity { public float getSaddleY() { return saddleY; } Mount(); }
Mount extends BasicMovingEntity { public float getSaddleY() { return saddleY; } Mount(); void registerRider(Player rider); Player getRider(); void removeRider(Player player); void fly(boolean left, boolean right, boolean up, boolean down); float getSaddleX(); float getSaddleY(); }
Mount extends BasicMovingEntity { public float getSaddleY() { return saddleY; } Mount(); void registerRider(Player rider); Player getRider(); void removeRider(Player player); void fly(boolean left, boolean right, boolean up, boolean down); float getSaddleX(); float getSaddleY();  }