/** Stops the AI if it has been registered. */ public final void killAIIfApplicable() { if (ai == null) { return; } ai.kill(); }