Sign in or register
for additional privileges

Border Codes

Mark Marino, Author

You appear to be using an older verion of Internet Explorer. For the best experience please upgrade your IE version or switch to a another web browser.

Witching Event definition

public void witchingEvent(TBCoordinates mc) {
      aheadCoords = mc;
      if (display.getCurrent().equals(tbDowsingCompass)) {
          waypointAheadAlert.setString(tbDowsingCompass.getInfo(mc));
          waypointAheadAlert.setImage(aheadCoords.getIcon());
          double distance = tbDowsingCompass.distanceTo(mc);

Function: The first part of the witchingEvent method, which, as the note above indicates,
evaluates the current heading against the direction of a waypoint.


This is the key function of the project, which evokes the metaphor of "witching" for a method which examines whether or not one is pointed toward a waypoint.
This page annotates:
TBMIDlet.java at line 325 - 329
Comment on this page
 

Discussion of "Witching Event definition"

Add your voice to this discussion.

Checking your signed in status ...

Previous page on path position, page 5 of 7 Next page on path