Physics-Simulator
v1.4.0-beta.2
|
Functions | |
void | fireRandom (void) |
char | handleEvent (SDL_Event *) |
int | findSelectedBall (LOC) |
void | doFireTool (SDL_Event *) |
void | doDeleTool (SDL_Event *) |
void | doDragTool (SDL_Event *) |
void | doDropTool (SDL_Event *) |
void | doInfoTool (SDL_Event *) |
void | doRopeTool (SDL_Event *) |
Variables | |
clsToolbar | toolbar |
clsTick | tick |
clsScreen | cannonwindow |
LOC | oldmouse = {0,0} |
LOC | currentmouse = {0,0} |
bool | holding = false |
void core::doDeleTool | ( | SDL_Event * | e | ) |
Function for the delete tool
e | = SDL_event passed through handle event |
void core::doDragTool | ( | SDL_Event * | e | ) |
Function for the drag tool
e | = SDL_event passed through handle event |
void core::doDropTool | ( | SDL_Event * | e | ) |
Function for the drop tool
e | = SDL_event passed through handle event |
void core::doFireTool | ( | SDL_Event * | e | ) |
Function for the fire tool
e | = SDL_event passed through handle event |
void core::doInfoTool | ( | SDL_Event * | e | ) |
Function for the info tool
e | = SDL_event passed through handle event |
void core::doRopeTool | ( | SDL_Event * | e | ) |
Function for the rope tool
e | = SDL_event passed through handle event |
int core::findSelectedBall | ( | LOC | mouseplace | ) |
Finds the ball that was clicked on.
mouseplace | = Where the mouse clicked |
void core::fireRandom | ( | void | ) |
Causes cannonballs to be fired randomly
char core::handleEvent | ( | SDL_Event * | e | ) |
Checks an SDL event to see what the program should do.
e | = Pointer to the event that happened. |
clsScreen core::cannonwindow |
LOC core::currentmouse = {0,0} |
bool core::holding = false |
LOC core::oldmouse = {0,0} |
clsTick core::tick |
clsToolbar core::toolbar |