Functions | |
| byte | CdStatus (void) |
| Returns the status of the CD Drive. | |
| void | DrawPrimitive (void *primitive) |
| Draws a ps1 primitive to the screen. | |
| void | DrawArrow (HudMobyInfo *hudMobyInfo, uint timer, int leftOrRightArrow) |
| Draws a blinking arrow facing left or right. | |
| void | DrawTextbox (int xBound1, int xBound2, int yBound1, int yBound2) |
| Draws a black textbox with a gold border. You can specify the bounds. | |
| char * | DrawTextCapitals (char *text, int *textInfo, int spacing, char color) |
| Draws a text string to the screen (Only capital characters allowed) | |
| int | DrawTextAll (char *text, int *capitalTextInfo, int *lowercaseTextInfo, int spacing, char color) |
| Draws a text string to the screen (Capital & Lowercase allowed) | |
| void | ExitInventoryMenu (void) |
| Handles the required steps for exiting the inventory menu. | |
| int | CalculateCompletionPercentage (void) |
| Returns the current completion percentage. | |
| int | SinScaled (uint param_1) |
| void | Vec3Add (int *result, int *a, int *b) |
| Adds vector 'a' and vector 'b' together, and stores the resulting vector in 'result'. | |
| void | Vec3Copy (int *dst, int *src) |
| Copies the 'src' Vector to the 'dst' Vector. | |
| void | MatrixTranspose (uint *outputMatrix, uint *inputMatrix) |
Functions we have decompiled/reverse engineered to varying degrees.
| int CalculateCompletionPercentage | ( | void | ) |
Returns the current completion percentage.
Returns the current completion percentage based on your gems, dragons, and eggs. (Except for when you are above 12000 gems.)
Definition at line 20 of file misc_game.c.
| byte CdStatus | ( | void | ) |
Returns the status of the CD Drive.
| void DrawArrow | ( | HudMobyInfo * | hudMobyInfo, |
| uint | timer, | ||
| int | leftOrRightArrow | ||
| ) |
Draws a blinking arrow facing left or right.
Fills out full moby struct into the pointer to the hud moby buffer
| void* | hudMobyInfo - pointer to basic info about the arrow you want to draw (x, y, size) |
| uint | timer - timer that counts every frame to be used for the pre-determined 16 frame intervals. |
| int | leftOrRightArrow - 0 for right, 1 for left |
Definition at line 55 of file draw_stuff.c.
| void DrawPrimitive | ( | void * | primitive | ) |
Draws a ps1 primitive to the screen.
Places a primitive struct ptr into the array of primitives to be drawn every frame (Somewhat unsure)
| void* | hudMobyInfo - pointer to basic info about the arrow you want to draw (x, y, size) |
Definition at line 22 of file draw_stuff.c.
| int DrawTextAll | ( | char * | text, |
| int * | capitalTextInfo, | ||
| int * | lowercaseTextInfo, | ||
| int | spacing, | ||
| char | color | ||
| ) |
Draws a text string to the screen (Capital & Lowercase allowed)
Fills out a moby struct in the hud mobys array, using arguments for ASCII text
| char* | text - text to be drawn. |
| int* | capitalTextInfo - pointer to the desired location and size of the text. |
| int* | lowercaseextInfo - pointer to the desired spacing and size of lowercase text. |
| int | spacing - how much space between characters. |
| char | color - color. |
Definition at line 89 of file draw_text.c.
| void DrawTextbox | ( | int | xBound1, |
| int | xBound2, | ||
| int | yBound1, | ||
| int | yBound2 | ||
| ) |
Draws a black textbox with a gold border. You can specify the bounds.
Calls Draw primitive with the interesting hack they use for the alpha channel to achieve the black background, and also 4 draw lines for the border.
| int | xBound1 - the first x boundry of the box |
| int | xBound2 - the second x boundry of the box |
| int | yBound1 - the first y boundry of the box |
| int | yBound2 - the second y boundry of the box |
Definition at line 94 of file draw_stuff.c.
| char * DrawTextCapitals | ( | char * | text, |
| int * | textInfo, | ||
| int | spacing, | ||
| char | color | ||
| ) |
Draws a text string to the screen (Only capital characters allowed)
Fills out a moby struct in the hud mobys array, using arguments for Capital ASCII text
| char* | text - text to be drawn. |
| int* | textInfo - pointer to the desired location and size of the text. |
| int | spacing - how much space between characters. |
| char | color - color. |
Definition at line 22 of file draw_text.c.
| void ExitInventoryMenu | ( | void | ) |
Handles the required steps for exiting the inventory menu.
Places texture back into vram, sets gamestate to gameplay, resets hud timers, continues music, etc
| int SinScaled | ( | uint | param_1 | ) |
| uint | - |
Definition at line 47 of file misc_game.c.
| void Vec3Add | ( | int * | result, |
| int * | a, | ||
| int * | b | ||
| ) |
Adds vector 'a' and vector 'b' together, and stores the resulting vector in 'result'.
| int* | result - The resulting vector. |
| int* | a - The first vector to add. |
| int* | b - The second vector to add. |
| void Vec3Copy | ( | int * | dst, |
| int * | src | ||
| ) |
Copies the 'src' Vector to the 'dst' Vector.
| int* | src - The source vector. |
| int* | dst - The destination vector. |