naev 0.10.4
land_outfits.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "land.h"
7#include "outfit.h"
8#include "pilot.h"
9#include "tk/widget/imagearray.h"
10
11int outfit_altText( char *buf, int n, const Outfit *o, const Pilot *plt );
12
13void outfits_open( unsigned int wid, const Outfit **outfits );
14void outfits_regenList( unsigned int wid, const char *str );
15void outfits_update( unsigned int wid, const char* str );
17int outfits_filter( const Outfit **outfits, int n,
18 int(*filter)( const Outfit *o ), const char *name );
19ImageArrayCell *outfits_imageArrayCells( const Outfit **outfits, int *n, const Pilot *plt );
20int outfit_canBuy( const char *outfit, const Spob *spob );
21int outfit_canSell( const char *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.
Definition: land_outfits.c:655
void outfits_regenList(unsigned int wid, const char *str)
Regenerates the outfit list.
Definition: land_outfits.c:217
void outfits_cleanup(void)
Cleans up outfit globals.
int outfits_filter(const Outfit **outfits, int n, int(*filter)(const Outfit *o), const char *name)
Applies a filter function and string to a list of outfits.
Definition: land_outfits.c:585
void outfits_open(unsigned int wid, const Outfit **outfits)
Opens the outfit exchange center window.
Definition: land_outfits.c:117
ImageArrayCell * outfits_imageArrayCells(const Outfit **outfits, int *noutfits, const Pilot *p)
Generates image array cells corresponding to outfits.
Definition: land_outfits.c:687
void outfits_updateEquipmentOutfits(void)
Updates the outfitter and equipment outfit image arrays.
Definition: land_outfits.c:523
void outfits_update(unsigned int wid, const char *str)
Updates the outfits in the outfit window.
Definition: land_outfits.c:405
int outfit_canSell(const char *name)
Checks to see if the player can sell the selected outfit.
Definition: land_outfits.c:935
int outfit_canBuy(const char *name, const Spob *spob)
Checks to see if the player can buy the outfit.
Definition: land_outfits.c:794
A ship outfit, depends radically on the type.
Definition: outfit.h:304
The representation of an in-game pilot.
Definition: pilot.h:210
Represents a Space Object (SPOB), including and not limited to planets, stations, wormholes,...
Definition: space.h:88