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.
Previous page on path | position, page 5 of 7 | Next page on path |
Discussion of "Witching Event definition"
Add your voice to this discussion.
Checking your signed in status ...