naev 0.10.4
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, const char *name,
13 int priority, glTexture *portrait, const char *desc, glTexture *background );
14unsigned int npc_add_event( unsigned int evt, const char *func, const char *name,
15 int priority, glTexture *portrait, const char *desc, glTexture *background );
16
17/*
18 * Removing.
19 */
20int npc_rm_event( unsigned int id, unsigned int evt );
21int npc_rm_mission( unsigned int id, unsigned int mid );
22int npc_rm_parentEvent( unsigned int id );
23int npc_rm_parentMission( unsigned int mid );
24
25/*
26 * Control.
27 */
28void npc_sort (void);
29void npc_generateMissions (void);
30void npc_patchMission( Mission *misn );
31void npc_clear (void);
32
33/*
34 * Land image array stuff.
35 */
36int npc_getArraySize (void);
37const char *npc_getName( int i );
40const char *npc_getDesc( int i );
41int npc_isImportant( int i );
42int npc_approach( int i );
const char * npc_getDesc(int i)
Gets the NPC description.
Definition: npc.c:542
void npc_patchMission(Mission *misn)
Patches a new mission bar npc into the bar system.
Definition: npc.c:419
void npc_generateMissions(void)
Generates the bar missions.
Definition: npc.c:364
glTexture * npc_getTexture(int i)
Get the texture of an NPC.
Definition: npc.c:530
int npc_approach(int i)
Approaches the NPC.
Definition: npc.c:601
int npc_rm_parentMission(unsigned int mid)
Removes all the npc belonging to a mission.
Definition: npc.c:301
void npc_clear(void)
Cleans up the spaceport bar NPC.
Definition: npc.c:469
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:189
int npc_getArraySize(void)
Get the size of the npc array.
Definition: npc.c:495
int npc_rm_parentEvent(unsigned int id)
Removes all the npc belonging to an event.
Definition: npc.c:277
glTexture * npc_getBackground(int i)
Get the background of an NPC.
Definition: npc.c:515
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:168
int npc_isImportant(int i)
Checks to see if the NPC is important or not.
Definition: npc.c:554
int npc_rm_mission(unsigned int id, unsigned int mid)
removes a mission NPC.
Definition: npc.c:255
int npc_rm_event(unsigned int id, unsigned int evt)
removes an event NPC.
Definition: npc.c:233
const char * npc_getName(int i)
Get the name of an NPC.
Definition: npc.c:503
void npc_sort(void)
Sorts the NPCs.
Definition: npc.c:355
Represents an active mission.
Definition: mission.h:79
Abstraction for rendering sprite sheets.
Definition: opengl_tex.h:34