nexus/vault.h

28 lines
1.4 KiB
C
Raw Normal View History

2011-11-30 13:07:19 +11:00
#include "defs.h"
vlegend_t *addlegend(vault_t *v, int ch, enum VAULTTHING tt, int pct, char *what);
vault_t *addvault(void);
void addvaultcellcontents(cell_t *c, vault_t *v, int x, int y, int rotation);
void addvaultcontents(map_t *m, vault_t *v, int minx, int miny, int maxx, int maxy, int rotationmapnum);
int addvaultthing(cell_t *c, vault_t *v, enum VAULTTHING vt, char *what);
void dumpvault(char *name, int rotation);
vault_t *findvault(char *id);
vault_t *findvaultbyid(int id);
vault_t *findvaultwithflag(enum FLAG fid);
void generatevaultrotations(vault_t *v);
void getadjustedcoords(vault_t *v, int origx, int origy, int minx, int miny, int maxx, int maxy, int rotation, int *retx, int *rety);
void getboundingbox(int x1, int y1, int x2, int y2, int *retleft, int *rettop, int *retright, int *retbottom);
enum RARITY getvaultrarity(vault_t *v);
void getvaultwh(vault_t *v, int *w, int *h, int rotation);
char *getvstatename(enum VAULTSTATE vs);
celltype_t *getvaultcelltype(vault_t *v, int x, int y, int rotation);
char getvaultchar(vault_t *v, int x, int y, int rotation, int *map0offset);
vault_t *getvaulttype(map_t *m);
int handleline(vault_t *v, char *line);
void killvault(vault_t *v);
vault_t *loadvault(char *filename);
void loadvaults(void);
void rotatecoords(int *x, int *y, vault_t *v, int rotation, int *retoffset);
int vaultthingok(enum VAULTTHING vt, char *what);
int vaultokformap(vault_t *v, map_t *m);