Lephisto/src/faction.h

30 lines
678 B
C

#pragma once
#include "opengl.h"
#include "colour.h"
#define FACTION_PLAYER 0
/* Get stuff. */
int faction_get(const char* name);
char* faction_name(int f);
char* faction_longname(int f);
glTexture* faction_logoSmall(int f);
/* Player stuff. */
void faction_modPlayer(int f, double mod);
void faction_modPlayerRaw(int f, double mod);
double faction_getPlayer(int f);
char* faction_getStanding(double mod);
char* faction_getStandingBroad(double mod);
glColour* faction_getColour(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);