Deals with boarding ships.
More...
#include "board.h"
#include "commodity.h"
#include "hook.h"
#include "log.h"
#include "ndata.h"
#include "nlua.h"
#include "pilot.h"
#include "player.h"
#include "space.h"
Go to the source code of this file.
Deals with boarding ships.
Definition in file board.c.
◆ BOARDING_HEIGHT
| #define BOARDING_HEIGHT 200 |
Boarding window height.
Definition at line 25 of file board.c.
◆ BOARDING_WIDTH
| #define BOARDING_WIDTH 380 |
Boarding window width.
Definition at line 24 of file board.c.
◆ BUTTON_HEIGHT
Boarding button height.
Definition at line 28 of file board.c.
◆ BUTTON_WIDTH
Boarding button width.
Definition at line 27 of file board.c.
◆ board_hook()
| int board_hook |
( |
void * | data | ) |
|
◆ board_unboard()
| void board_unboard |
( |
void | | ) |
|
Forces unboarding of the pilot.
Definition at line 210 of file board.c.
◆ pilot_board()
| int pilot_board |
( |
Pilot * | p | ) |
|
Has a pilot attempt to board another pilot.
- Parameters
-
| p | Pilot doing the boarding. |
- Returns
- 1 if target was boarded.
Definition at line 221 of file board.c.
◆ pilot_boardComplete()
| void pilot_boardComplete |
( |
Pilot * | p | ) |
|
Finishes the boarding.
- Parameters
-
| p | Pilot to finish the boarding. |
Definition at line 274 of file board.c.
◆ player_canBoard()
| int player_canBoard |
( |
int | noisy | ) |
|
Sees if the pilot can board a pilot.
Definition at line 110 of file board.c.
◆ player_isBoarded()
| int player_isBoarded |
( |
void | | ) |
|
Gets if the player is boarded.
Definition at line 38 of file board.c.
◆ player_tryBoard()
| int player_tryBoard |
( |
int | noisy | ) |
|
Attempt to board the player's target.
Creates the window on success.
Definition at line 152 of file board.c.
◆ board_boarded
Whether or not the player is boarded.
Definition at line 31 of file board.c.
◆ board_env
Initial value:Lua environment to do the boarding.
Definition at line 32 of file board.c.
◆ board_stopboard
Whether or not to unboard.
Definition at line 30 of file board.c.