naev 0.12.6
npc.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "mission.h"
7#include "opengl.h"
8
9/*
10 * Adding.
11 */
12unsigned int npc_add_mission( unsigned int mid, const char *func,
13 const char *name, int priority,
14 glTexture *portrait, const char *desc,
15 glTexture *background );
16unsigned int npc_add_event( unsigned int evt, const char *func,
17 const char *name, int priority, glTexture *portrait,
18 const char *desc, glTexture *background );
19
20/*
21 * Removing.
22 */
23int npc_rm_event( unsigned int id, unsigned int evt );
24int npc_rm_mission( unsigned int id, unsigned int mid );
25int npc_rm_parentEvent( unsigned int id );
26int npc_rm_parentMission( unsigned int mid );
27
28/*
29 * Control.
30 */
31void npc_sort( void );
32void npc_generateMissions( void );
33void npc_patchMission( Mission *misn );
34void npc_clear( void );
35
36/*
37 * Land image array stuff.
38 */
39int npc_getArraySize( void );
40const char *npc_getName( int i );
43const char *npc_getDesc( int i );
44int npc_isImportant( int i );
45int npc_approach( int i );
const char * npc_getDesc(int i)
Gets the NPC description.
Definition npc.c:574
void npc_patchMission(Mission *misn)
Patches a new mission bar npc into the bar system.
Definition npc.c:427
void npc_generateMissions(void)
Generates the bar missions.
Definition npc.c:366
glTexture * npc_getTexture(int i)
Get the texture of an NPC.
Definition npc.c:562
int npc_approach(int i)
Approaches the NPC.
Definition npc.c:635
int npc_rm_parentMission(unsigned int mid)
Removes all the npc belonging to a mission.
Definition npc.c:303
void npc_clear(void)
Cleans up the spaceport bar NPC.
Definition npc.c:477
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.
Definition npc.c:190
int npc_getArraySize(void)
Get the size of the npc array.
Definition npc.c:504
int npc_rm_parentEvent(unsigned int id)
Removes all the npc belonging to an event.
Definition npc.c:279
glTexture * npc_getBackground(int i)
Get the background of an NPC.
Definition npc.c:524
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.
Definition npc.c:167
int npc_isImportant(int i)
Checks to see if the NPC is important or not.
Definition npc.c:586
int npc_rm_mission(unsigned int id, unsigned int mid)
removes a mission NPC.
Definition npc.c:257
int npc_rm_event(unsigned int id, unsigned int evt)
removes an event NPC.
Definition npc.c:235
const char * npc_getName(int i)
Get the name of an NPC.
Definition npc.c:512
void npc_sort(void)
Sorts the NPCs.
Definition npc.c:357
Represents an active mission.
Definition mission.h:83
Abstraction for rendering sprite sheets.
Definition opengl_tex.h:43