forked from naev/naev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfaction.h
80 lines (65 loc) · 2.29 KB
/
faction.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* See Licensing and Copyright notice in naev.h
*/
#ifndef FACTION_H
# define FACTION_H
#include "colour.h"
#include "nlua.h"
#include "opengl.h"
#define FACTION_PLAYER 0 /**< Hardcoded player faction identifier. */
#define FACTION_LOGO_SM 64 /**< Size of "small" logo. */
/* get stuff */
int faction_isFaction( int f );
int faction_exists( const char* name );
int faction_get( const char* name );
int* faction_getAll();
int* faction_getKnown();
int faction_isInvisible( int id );
int faction_setInvisible( int id, int state );
int faction_isKnown( int id );
int faction_isDynamic( int id );
const char* faction_name( int f );
const char* faction_shortname( int f );
const char* faction_longname( int f );
const char* faction_default_ai( int f );
double faction_lane_length_per_presence( int f );
void faction_clearEnemy( int f );
void faction_addEnemy( int f, int o );
void faction_rmEnemy( int f, int o );
void faction_clearAlly( int f );
void faction_addAlly( int f, int o );
void faction_rmAlly( int f, int o );
nlua_env faction_getScheduler( int f );
nlua_env faction_getEquipper( int f );
glTexture* faction_logo( int f );
const glColour* faction_colour( int f );
int* faction_getEnemies( int f );
int* faction_getAllies( int f );
int* faction_getGroup( int which );
/* set stuff */
int faction_setKnown( int id, int state );
/* player stuff */
void faction_modPlayer( int f, double mod, const char *source );
void faction_modPlayerSingle( int f, double mod, const char *source );
void faction_modPlayerRaw( int f, double mod );
void faction_setPlayer( int f, double value );
double faction_getPlayer( int f );
double faction_getPlayerDef( int f );
int faction_isPlayerFriend( int f );
int faction_isPlayerEnemy( int f );
const char *faction_getStandingText( int f );
const char *faction_getStandingBroad( int f, int bribed, int override );
const glColour* faction_getColour( int f );
char faction_getColourChar( int f );
/* works with only factions */
int areEnemies( int a, int b );
int areAllies( int a, int b );
/* load/free */
int factions_load (void);
void factions_free (void);
void factions_reset (void);
void faction_clearKnown (void);
/* Dynamic factions. */
void factions_clearDynamic (void);
int faction_dynAdd( int base, const char* name, const char* display, const char* ai );
#endif /* FACTION_H */