![]() |
naev 0.12.6
|
Contains all the player fleet related stuff. More...
#include "player_fleet.h"#include "array.h"#include "dialogue.h"#include "equipment.h"#include "escort.h"#include "land.h"#include "naev.h"#include "rng.h"
Go to the source code of this file.
Functions | |
| static int | pfleet_cargoAddRaw (const Commodity *com, int q) |
| void | pfleet_update (void) |
| Updates the used fleet capacity of the player. | |
| 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. | |
| static void | shipCargo (PilotCommodity **pclist, Pilot *p, int remove) |
| static int | pc_cmp (const void *pa, const void *pb) |
| static void | pfleet_cargoRedistributeInternal (PilotCommodity *pc_add) |
| Redistributes the cargo in the player's fleet. | |
| void | pfleet_cargoRedistribute (void) |
| Redistributes the cargo in the player's fleet. | |
| int | pfleet_cargoUsed (void) |
| Gets the total cargo space used by the player's fleet. | |
| int | pfleet_cargoFree (void) |
| Gets the total amount of free cargo space in the player's fleet. | |
| int | pfleet_cargoMissionFree (void) |
| Gets the free mission cargo space 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. | |
| unsigned int | pfleet_cargoMissionAdd (const Commodity *com, int q) |
| Adds some mission cargo to the player's fleet. | |
| int | pfleet_cargoRm (const Commodity *com, int q, int jet) |
| Removes some cargo from the player's fleet. | |
| 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 carrying. | |
Contains all the player fleet related stuff.
Definition in file player_fleet.c.
|
static |
Definition at line 198 of file player_fleet.c.
| int pfleet_cargoAdd | ( | const Commodity * | com, |
| int | q ) |
Adds some cargo to the player's fleet.
| com | Commodity to add. |
| q | Quantity to add. |
Definition at line 388 of file player_fleet.c.
|
static |
Definition at line 362 of file player_fleet.c.
| int pfleet_cargoFree | ( | void | ) |
Gets the total amount of free cargo space in the player's fleet.
Definition at line 302 of file player_fleet.c.
| PilotCommodity * pfleet_cargoList | ( | void | ) |
Gets a list of all the cargo in the fleet.
Definition at line 470 of file player_fleet.c.
| 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 carrying.
| com | Commodity to see which ships have. |
Definition at line 494 of file player_fleet.c.
| unsigned int pfleet_cargoMissionAdd | ( | const Commodity * | com, |
| int | q ) |
Adds some mission cargo to the player's fleet.
| com | Commodity to add. |
| q | Quantity to add. |
Definition at line 408 of file player_fleet.c.
| int pfleet_cargoMissionFree | ( | void | ) |
Gets the free mission cargo space in the player's fleet.
Definition at line 324 of file player_fleet.c.
| int pfleet_cargoOwned | ( | const Commodity * | com | ) |
Gets the total amount of a commodity type owned by the player's fleet.
| com | Commodity to add. |
Definition at line 343 of file player_fleet.c.
| void pfleet_cargoRedistribute | ( | void | ) |
Redistributes the cargo in the player's fleet.
Definition at line 268 of file player_fleet.c.
|
static |
Redistributes the cargo in the player's fleet.
Definition at line 215 of file player_fleet.c.
| int pfleet_cargoRm | ( | const Commodity * | com, |
| int | q, | ||
| int | jet ) |
Removes some cargo from the player's fleet.
| com | Commodity to remove. |
| q | Quantity to remove. |
| jet | Whether or not to jet into space. |
Definition at line 430 of file player_fleet.c.
| int pfleet_cargoUsed | ( | void | ) |
Gets the total cargo space used by the player's fleet.
Definition at line 278 of file player_fleet.c.
| int pfleet_deploy | ( | PlayerShip_t * | ps | ) |
Deploys a player's pilot.
Will not deploy duplicates.
| ps | Player ship to deploy. |
Definition at line 122 of file player_fleet.c.
| int pfleet_toggleDeploy | ( | PlayerShip_t * | ps, |
| int | deploy ) |
Toggles a player ship as deployed.
| ps | Player ship to toggle. |
| deploy | Whether or not to set status as deployed. |
Definition at line 46 of file player_fleet.c.
| void pfleet_update | ( | void | ) |
Updates the used fleet capacity of the player.
Definition at line 25 of file player_fleet.c.
|
static |
Definition at line 157 of file player_fleet.c.