naev 0.12.6
land_outfits.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "outfit.h"
7#include "pilot.h"
8#include "tk/widget/imagearray.h"
9
10int outfit_altText( char *buf, int n, const Outfit *o, const Pilot *plt );
11
12void outfits_open( unsigned int wid, const Outfit **outfits, int blackmarket );
13void outfits_regenList( unsigned int wid, const char *str );
14void outfits_update( unsigned int wid, const char *str );
16int outfits_filter( const Outfit **outfits, int n,
17 int ( *filter )( const Outfit *o ), const char *name );
18ImageArrayCell *outfits_imageArrayCells( const Outfit **outfits, int *noutfits,
19 const Pilot *p, int store );
20int outfit_canBuy( const Outfit *outfit, int blackmarket );
21int outfit_canSell( const Outfit *outfit );
22void outfits_cleanup( void );
int outfit_altText(char *buf, int n, const Outfit *o, const Pilot *plt)
Computes the alt text for an outfit.
void outfits_regenList(unsigned int wid, const char *str)
Regenerates the outfit list.
int outfit_canBuy(const Outfit *outfit, int wid)
Checks to see if the player can buy the outfit.
void outfits_cleanup(void)
Cleans up outfit globals.
ImageArrayCell * outfits_imageArrayCells(const Outfit **outfits, int *noutfits, const Pilot *p, int store)
Generates image array cells corresponding to outfits.
void outfits_open(unsigned int wid, const Outfit **outfits, int blackmarket)
Opens the outfit exchange center window.
void outfits_updateEquipmentOutfits(void)
Updates the outfitter and equipment outfit image arrays.
void outfits_update(unsigned int wid, const char *str)
Updates the outfits in the outfit window.
int outfits_filter(const Outfit **outfits, int n, int(*filter)(const Outfit *), const char *name)
Applies a filter function and string to a list of outfits.
int outfit_canSell(const Outfit *outfit)
Checks to see if the player can sell the selected outfit.
A ship outfit, depends radically on the type.
Definition outfit.h:372
The representation of an in-game pilot.
Definition pilot.h:263