naev 0.12.5
player_fleet.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "pilot.h"
7#include "player.h"
8
9typedef struct PFleetCargo_ {
10 Pilot *p;
11 int q;
13
14void pfleet_update( void );
15void pfleet_cargoRedistribute( void );
16int pfleet_toggleDeploy( PlayerShip_t *ps, int deploy );
18int pfleet_cargoUsed( void );
19int pfleet_cargoFree( void );
20int pfleet_cargoMissionFree( void );
21int pfleet_cargoOwned( const Commodity *com );
22int pfleet_cargoAdd( const Commodity *com, int q );
23unsigned int pfleet_cargoMissionAdd( const Commodity *com, int q );
24int pfleet_cargoRm( const Commodity *com, int q, int jet );
int pfleet_toggleDeploy(PlayerShip_t *ps, int deploy)
Toggles a player ship as deployed.
int pfleet_deploy(PlayerShip_t *ps)
Deploys a player's pilot.
PilotCommodity * pfleet_cargoList(void)
Gets a list of all the cargo in the fleet.
PFleetCargo * pfleet_cargoListShips(const Commodity *com)
Gets the list of ships that are carry a certain commodity in the player fleet and the amount they are...
unsigned int pfleet_cargoMissionAdd(const Commodity *com, int q)
Adds some mission cargo to the player's fleet.
int pfleet_cargoFree(void)
Gets the total amount of free cargo space in the player's fleet.
void pfleet_cargoRedistribute(void)
Redistributes the cargo in the player's fleet.
int pfleet_cargoOwned(const Commodity *com)
Gets the total amount of a commodity type owned by the player's fleet.
int pfleet_cargoAdd(const Commodity *com, int q)
Adds some cargo to the player's fleet.
int pfleet_cargoRm(const Commodity *com, int q, int jet)
Removes some cargo from the player's fleet.
int pfleet_cargoMissionFree(void)
Gets the free mission cargo space in the player's fleet.
int pfleet_cargoUsed(void)
Gets the total cargo space used by the player's fleet.
void pfleet_update(void)
Updates the used fleet capacity of the player.
Represents a commodity.
Definition commodity.h:57
Stores a pilot commodity.
Definition pilot.h:223
The representation of an in-game pilot.
Definition pilot.h:263
Player ship.
Definition player.h:72