![]() |
naev 0.12.5
|
Handles the pilot hook stuff. More...

Go to the source code of this file.
Functions | |
| int | pilot_runHookParam (Pilot *p, int hook_type, const HookParam *param, int nparam) |
| Tries to run a pilot hook if he has it. | |
| int | pilot_runHook (Pilot *p, int hook_type) |
| Tries to run a pilot hook if he has it. | |
| void | pilot_addHook (Pilot *pilot, int type, unsigned int hook) |
| Adds a hook to the pilot. | |
| void | pilots_addGlobalHook (int type, unsigned int hook) |
| Adds a pilot global hook. | |
| void | pilots_rmGlobalHook (unsigned int hook) |
| Removes a pilot global hook. | |
| void | pilots_clearGlobalHooks (void) |
| Removes all the pilot global hooks. | |
| void | pilots_rmHook (unsigned int hook) |
| Removes a hook from all the pilots. | |
| void | pilot_clearHooks (Pilot *p) |
| Clears the pilots hooks. | |
| void | pilot_freeGlobalHooks (void) |
| Clears global pilot hooks. | |
Variables | |
| static PilotHook * | pilot_globalHooks |
| static int | pilot_hookCleanup = 0 |
Handles the pilot hook stuff.
Definition in file pilot_hook.c.
| void pilot_addHook | ( | Pilot * | pilot, |
| int | type, | ||
| unsigned int | hook ) |
Adds a hook to the pilot.
| pilot | Pilot to add the hook to. |
| type | Type of the hook to add. |
| hook | ID of the hook to add. |
Definition at line 116 of file pilot_hook.c.
| void pilot_clearHooks | ( | Pilot * | p | ) |
Clears the pilots hooks.
| p | Pilot whose hooks we're clearing |
Definition at line 212 of file pilot_hook.c.
| void pilot_freeGlobalHooks | ( | void | ) |
Clears global pilot hooks.
Definition at line 227 of file pilot_hook.c.
| int pilot_runHook | ( | Pilot * | p, |
| int | hook_type ) |
Tries to run a pilot hook if he has it.
| p | Pilot to run the hook. |
| hook_type | Type of hook to run. |
Definition at line 104 of file pilot_hook.c.
Tries to run a pilot hook if he has it.
| p | Pilot to run the hook. |
| hook_type | Type of hook to run. |
| param | Parameters to pass. |
| nparam | Number of parameters to pass. |
Definition at line 33 of file pilot_hook.c.
| void pilots_addGlobalHook | ( | int | type, |
| unsigned int | hook ) |
Adds a pilot global hook.
Definition at line 139 of file pilot_hook.c.
| void pilots_clearGlobalHooks | ( | void | ) |
Removes all the pilot global hooks.
Definition at line 170 of file pilot_hook.c.
| void pilots_rmGlobalHook | ( | unsigned int | hook | ) |
Removes a pilot global hook.
Definition at line 156 of file pilot_hook.c.
| void pilots_rmHook | ( | unsigned int | hook | ) |
Removes a hook from all the pilots.
| hook | Hook to remove. |
Definition at line 181 of file pilot_hook.c.
|
static |
Global hooks that affect all pilots.
Definition at line 20 of file pilot_hook.c.
|
static |
Are hooks being removed from a pilot?
Definition at line 22 of file pilot_hook.c.