For communicating with spobs/pilots.
More...
#include "comm.h"
#include "ai.h"
#include "array.h"
#include "commodity.h"
#include "dialogue.h"
#include "escort.h"
#include "hook.h"
#include "log.h"
#include "ndata.h"
#include "nlua.h"
#include "opengl.h"
#include "pilot.h"
#include "player.h"
#include "rng.h"
#include "toolkit.h"
Go to the source code of this file.
For communicating with spobs/pilots.
Definition in file comm.c.
◆ BUTTON_HEIGHT
Button height.
Definition at line 32 of file comm.c.
◆ BUTTON_WIDTH
Button width.
Definition at line 31 of file comm.c.
◆ GRAPHIC_HEIGHT
| #define GRAPHIC_HEIGHT 256 |
Height of graphic.
Definition at line 35 of file comm.c.
◆ GRAPHIC_WIDTH
| #define GRAPHIC_WIDTH 256 |
Width of graphic.
Definition at line 34 of file comm.c.
◆ comm_getString()
| static const char * comm_getString |
( |
const Pilot * |
p, |
|
|
const char * |
str |
|
) |
| |
|
static |
Gets a string from the pilot's memory.
Valid targets are:
- comm_no: message of communication failure.
- bribe_no: unbribe message
- bribe_prompt: bribe prompt
- bribe_paid: paid message
- Parameters
-
| p | Pilot to get string from. |
| str | String to get. |
- Returns
- String matching str.
Definition at line 227 of file comm.c.
◆ comm_isOpen()
Check to see if the comm window is open.
Definition at line 51 of file comm.c.
◆ comm_openPilot()
| int comm_openPilot |
( |
unsigned int |
pilot | ) |
|
Opens the communication dialogue with a pilot.
- Parameters
-
| pilot | Pilot to communicate with. |
- Returns
- 0 on success.
Definition at line 70 of file comm.c.
◆ comm_openSpob()
| int comm_openSpob |
( |
Spob * |
spob | ) |
|
Opens a communication dialogue with a spob.
- Parameters
-
| spob | Spob to communicate with. |
- Returns
- 0 on success.
Definition at line 189 of file comm.c.
◆ comm_queueClose()
| void comm_queueClose |
( |
void |
| ) |
|
Queues a close command when possible.
Definition at line 59 of file comm.c.
◆ comm_commClose
Close comm when done.
Definition at line 38 of file comm.c.
◆ comm_env
| nlua_env comm_env = LUA_NOREF |
|
static |
Comm Lua env.
Definition at line 39 of file comm.c.
◆ comm_open
◆ comm_spob
Spob currently talking to.
Definition at line 37 of file comm.c.