Permalink
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (37 sloc) 1.19 KB
/*
* See Licensing and Copyright notice in naev.h
*/
#ifndef EQUIPMENT_H
# define EQUIPMENT_H
#include "pilot.h"
#include "outfit.h"
/*
* Main.
*/
void equipment_open( unsigned int wid );
void equipment_cleanup (void);
/*
* Misc.
*/
void equipment_addAmmo (void);
void equipment_regenLists( unsigned int wid, int outfits, int ships );
void equipment_updateShips( unsigned int wid, char* str );
void equipment_updateOutfits( unsigned int wid, char* str );
int equipment_shipStats( char *buf, int max_len, const Pilot *s, int dpseps );
/**
* Custom slot widget.
*/
typedef struct CstSlotWidget_ {
Pilot *selected; /**< Selected pilot ship. */
Outfit *outfit; /**< Selected outfit. */
int slot; /**< Selected equipment slot. */
int mouseover; /**< Mouse over slot. */
double altx; /**< Alt X text position. */
double alty; /**< Alt Y text position. */
int canmodify; /**< Whether or not it can modify stuff. */
int weapons; /**< Hack to render colours for currently selected weapon set. */
} CstSlotWidget; /**< Slot widget. */
void equipment_slotWidget( unsigned int wid,
double x, double y, double w, double h,
CstSlotWidget *data );
#endif /* EQUIPMENT_H */