public boolean shouldWarn(SolGame game) { SolShip hero = game.getHero(); if (hero == null) return false; Vector2 pos = hero.getPos(); float toCenter = game.getPlanetMan().getNearestSystem(pos).getPos().dst(pos); return toCenter < Const.SUN_RADIUS; }