/** * Turns the camera towards the RSObject. * * @author LastCoder * @return <tt>true</tt> If RSObject is on screen after attempted to move camera angle. */ public boolean turnTo() { final RSObject o = methods.objects.getNearest(getID()); if (o != null) { if (!o.isOnScreen()) { methods.camera.turnTo(o); return o.isOnScreen(); } } return false; }
/** * Returns the name of the object. * * @param object The object to look up. * @return The object name if the definition is available; otherwise "". */ public String getName(final RSObject object) { return object.getName(); }