Merge branch 'master' of git://github.com/BTAxis/naev into testmission
[naev.git] / src / faction.h
blobb2a23a9ab04e52b7e6e439ffb2936aace01c2482
1 /*
2 * See Licensing and Copyright notice in naev.h
3 */
6 #ifndef FACTION_H
7 # define FACTION_H
10 #include "opengl.h"
11 #include "colour.h"
14 #define FACTION_PLAYER 0 /**< Hardcoded player faction identifier. */
17 /* get stuff */
18 int faction_isFaction( int f );
19 int faction_get( const char* name );
20 int* faction_getAll( int *n );
21 char* faction_name( int f );
22 char* faction_longname( int f );
23 glTexture* faction_logoSmall( int f );
24 glTexture* faction_logoTiny( int f );
25 glColour* faction_colour( int f );
26 int* faction_getEnemies( int f, int *n );
27 int* faction_getAllies( int f, int *n );
29 /* player stuff */
30 void faction_modPlayer( int f, double mod );
31 void faction_modPlayerRaw( int f, double mod );
32 double faction_getPlayer( int f );
33 double faction_getPlayerDef( int f );
34 char* faction_getStanding( double mod );
35 char *faction_getStandingBroad( double mod );
36 glColour* faction_getColour( int f );
37 char faction_getColourChar( int f );
39 /* works with only factions */
40 int areEnemies( int a, int b );
41 int areAllies( int a, int b );
43 /* load/free */
44 int factions_load (void);
45 void factions_free (void);
46 void factions_reset (void);
49 #endif /* FACTION_H */