naev 0.12.5
land_shipyard.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "ship.h"
7#include "space.h"
8
9/*
10 * Window stuff.
11 */
12void shipyard_open( unsigned int wid );
13void shipyard_update( unsigned int wid, const char *str );
14void shipyard_cleanup( void );
15
16/*
17 * Helper functions.
18 */
19int shipyard_canBuy( const Ship *ship, const Spob *spob );
20int shipyard_canTrade( const Ship *ship, const Spob *spob );
void shipyard_open(unsigned int wid)
Opens the shipyard window.
void shipyard_cleanup(void)
Cleans up shipyard data.
int shipyard_canBuy(const Ship *ship, const Spob *spob)
Makes sure it's valid to buy a ship.
void shipyard_update(unsigned int wid, const char *str)
Updates the ships in the shipyard window.
int shipyard_canTrade(const Ship *ship, const Spob *spob)
Makes sure it's valid to buy a ship, trading the old one in simultaneously.
Represents a space ship.
Definition ship.h:97
Represents a Space Object (SPOB), including and not limited to planets, stations, wormholes,...
Definition space.h:102