|
| static unsigned int | npc_add (NPC_t *npc) |
| | Adds an NPC to the spaceport bar.
|
| static int | npc_rm (NPC_t *npc) |
| | Removes an npc from the spaceport bar.
|
| static NPC_t * | npc_arrayGet (unsigned int id) |
| | Gets an NPC by ID.
|
| static void | npc_free (NPC_t *npc) |
| | Frees a single npc.
|
| static Mission * | npc_getMisn (const NPC_t *npc) |
| static unsigned int | npc_add_giver (Mission *misn) |
| | Adds a mission giver NPC to the mission computer.
|
| unsigned int | npc_add_mission (unsigned int mid, const char *func, const char *name, int priority, glTexture *portrait, const char *desc, glTexture *background) |
| | Adds a mission NPC to the mission computer.
|
| unsigned int | npc_add_event (unsigned int evt, const char *func, const char *name, int priority, glTexture *portrait, const char *desc, glTexture *background) |
| | Adds a event NPC to the mission computer.
|
| int | npc_rm_event (unsigned int id, unsigned int evt) |
| | removes an event NPC.
|
| int | npc_rm_mission (unsigned int id, unsigned int mid) |
| | removes a mission NPC.
|
| int | npc_rm_parentEvent (unsigned int id) |
| | Removes all the npc belonging to an event.
|
| int | npc_rm_parentMission (unsigned int mid) |
| | Removes all the npc belonging to a mission.
|
| static int | npc_compare (const void *arg1, const void *arg2) |
| | NPC compare function.
|
| void | npc_sort (void) |
| | Sorts the NPCs.
|
| void | npc_generateMissions (void) |
| | Generates the bar missions.
|
| void | npc_patchMission (Mission *misn) |
| | Patches a new mission bar npc into the bar system.
|
| void | npc_clear (void) |
| | Cleans up the spaceport bar NPC.
|
| int | npc_getArraySize (void) |
| | Get the size of the npc array.
|
| const char * | npc_getName (int i) |
| | Get the name of an NPC.
|
| glTexture * | npc_getBackground (int i) |
| | Get the background of an NPC.
|
| glTexture * | npc_getTexture (int i) |
| | Get the texture of an NPC.
|
| const char * | npc_getDesc (int i) |
| | Gets the NPC description.
|
| int | npc_isImportant (int i) |
| | Checks to see if the NPC is important or not.
|
| static int | npc_approach_giver (NPC_t *npc) |
| | Approaches a mission giver guy.
|
| int | npc_approach (int i) |
| | Approaches the NPC.
|
Handles NPC stuff.
Definition in file npc.c.