Deals with boarding ships.
More...
#include "board.h"
#include "array.h"
#include "commodity.h"
#include "damagetype.h"
#include "hook.h"
#include "log.h"
#include "nstring.h"
#include "ndata.h"
#include "nlua.h"
#include "pilot.h"
#include "player.h"
#include "rng.h"
#include "space.h"
#include "toolkit.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 30 of file board.c.
◆ BOARDING_WIDTH
| #define BOARDING_WIDTH 380 |
Boarding window width.
Definition at line 29 of file board.c.
◆ BUTTON_HEIGHT
Boarding button height.
Definition at line 33 of file board.c.
◆ BUTTON_WIDTH
Boarding button width.
Definition at line 32 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 208 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 219 of file board.c.
◆ pilot_boardComplete()
| void pilot_boardComplete |
( |
Pilot * | p | ) |
|
Finishes the boarding.
- Parameters
-
| p | Pilot to finish the boarding. |
Definition at line 271 of file board.c.
◆ player_canBoard()
| int player_canBoard |
( |
int | noisy | ) |
|
Sees if the pilot can board a pilot.
Definition at line 114 of file board.c.
◆ player_isBoarded()
| int player_isBoarded |
( |
void | | ) |
|
Gets if the player is boarded.
Definition at line 42 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 36 of file board.c.
◆ board_env
| nlua_env board_env = LUA_NOREF |
|
static |
Lua environment to do the boarding.
Definition at line 37 of file board.c.
◆ board_stopboard
Whether or not to unboard.
Definition at line 35 of file board.c.