/** * Resets the player to a checkpoint with the given CheckPointInfo * * @param info */ public void resetCheckpoint(CheckPointInfo info) { state = info.getState(); velocity = Vector2.Zero; health = info.getHealth(); mana = info.getMana(); heading = info.getHeading(); stats = info.getStats(); screenPosition = info.getPosition(); collisionRect = info.getRectangle(); statusbar.setHealth(health); statusbar.setMana(mana); }