naev 0.11.5
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:563
void npc_patchMission(Mission *misn)
Patches a new mission bar npc into the bar system.
Definition npc.c:420
void npc_generateMissions(void)
Generates the bar missions.
Definition npc.c:365
glTexture * npc_getTexture(int i)
Get the texture of an NPC.
Definition npc.c:551
int npc_approach(int i)
Approaches the NPC.
Definition npc.c:622
int npc_rm_parentMission(unsigned int mid)
Removes all the npc belonging to a mission.
Definition npc.c:302
void npc_clear(void)
Cleans up the spaceport bar NPC.
Definition npc.c:470
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:496
int npc_rm_parentEvent(unsigned int id)
Removes all the npc belonging to an event.
Definition npc.c:278
glTexture * npc_getBackground(int i)
Get the background of an NPC.
Definition npc.c:516
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:169
int npc_isImportant(int i)
Checks to see if the NPC is important or not.
Definition npc.c:575
int npc_rm_mission(unsigned int id, unsigned int mid)
removes a mission NPC.
Definition npc.c:256
int npc_rm_event(unsigned int id, unsigned int evt)
removes an event NPC.
Definition npc.c:234
const char * npc_getName(int i)
Get the name of an NPC.
Definition npc.c:504
void npc_sort(void)
Sorts the NPCs.
Definition npc.c:356
Represents an active mission.
Definition mission.h:81
Abstraction for rendering sprite sheets.
Definition opengl_tex.h:36