void keyHome() - Changes the ship's home base or respawn location.

void selfDestruct() - Triggers the ship's self destruct mechanism.

void pauseAI() - Pauses the game for the ship, does not affect other ships.

void swapSettings() - Swaps between the ship's settings for turn rate and thrusting power.

void quitAI() - Quits Xpilot.

void talkKey() - Opens up the chat window.

void toggleCompass() - Toggles the ship's Compass.

void toggleShowMessage() - Toggles messages on the HUD on the left side of the screen.

void toggleShowItems() - Toggles items on the HUD on the left side of the screen.

void repair() - Repairs a target.

void reprogram() - Reprograms a modifier or lock bank.

void talk(char* talk_str) - Sends a message.

char* scanMsg(int id) - Returns the specified player message. ID 0 is the most recent occurring message.  If the id is past the max numbers of messages it returns empty string.

char* scanGameMsg(int id) - Returns the specified game message. ID 0 is the most recent occurring message.  If the id is past the max numbers of messages it returns empty string.

double degToRad(int deg) - Converts degrees to radians.

double radToDeg(double rad) - Converts radians to degrees.

double angleDiff(int angle1, int angle2) - Calculates the difference between two angles. Output range [-180,180] degrees.  Returns the smallest angle which angle1 could add to itself to be equal to angle2.

double angleAdd(int angle1, int angle2) - Calculates the sum of two angles. Takes and returns in degrees.  Output range [0,360).