For communicating with spobs/pilots.
More...
#include "comm.h"
#include "ai.h"
#include "array.h"
#include "escort.h"
#include "hook.h"
#include "log.h"
#include "ndata.h"
#include "nlua.h"
#include "pilot.h"
#include "player.h"
Go to the source code of this file.
|
| static const char * | comm_getString (const Pilot *p, const char *str) |
| | Gets a string from the pilot's memory.
|
| int | comm_isOpen (void) |
| | Check to see if the comm window is open.
|
| void | comm_queueClose (void) |
| | Queues a close command when possible.
|
| int | comm_openPilot (unsigned int pilot) |
| | Opens the communication dialogue with a pilot.
|
| int | comm_openSpob (Spob *spob) |
| | Opens a communication dialogue with a spob.
|
For communicating with spobs/pilots.
Definition in file comm.c.
◆ BUTTON_HEIGHT
Button height.
Definition at line 22 of file comm.c.
◆ BUTTON_WIDTH
Button width.
Definition at line 21 of file comm.c.
◆ GRAPHIC_HEIGHT
| #define GRAPHIC_HEIGHT 256 |
Height of graphic.
Definition at line 25 of file comm.c.
◆ GRAPHIC_WIDTH
| #define GRAPHIC_WIDTH 256 |
Width of graphic.
Definition at line 24 of file comm.c.
◆ comm_getString()
| 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 242 of file comm.c.
◆ comm_isOpen()
Check to see if the comm window is open.
Definition at line 41 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 60 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 187 of file comm.c.
◆ comm_queueClose()
| void comm_queueClose |
( |
void | | ) |
|
Queues a close command when possible.
Definition at line 49 of file comm.c.
◆ comm_commClose
Close comm when done.
Definition at line 28 of file comm.c.
◆ comm_env
| nlua_env comm_env = LUA_NOREF |
|
static |
Comm Lua env.
Definition at line 29 of file comm.c.
◆ comm_open
◆ comm_spob
Spob currently talking to.
Definition at line 27 of file comm.c.