Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
RadioTraffic.h
Go to the documentation of this file.
1
/* Project Starshatter 4.5
2
Destroyer Studios LLC
3
Copyright © 1997-2004. All Rights Reserved.
4
5
SUBSYSTEM: Stars.exe
6
FILE: RadioTraffic.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
RadioTraffic maintains a history of all messages sent between ships
13
in the simulation. This class also handles displaying relevant
14
traffic to the player.
15
*/
16
17
#ifndef RadioTraffic_h
18
#define RadioTraffic_h
19
20
#include "
Types.h
"
21
#include "
Geometry.h
"
22
#include "
SimObject.h
"
23
#include "
List.h
"
24
#include "
Text.h
"
25
26
// +--------------------------------------------------------------------+
27
28
class
Element
;
29
class
RadioMessage
;
30
class
Ship
;
31
class
SimObject
;
32
33
// +--------------------------------------------------------------------+
34
35
class
RadioTraffic
36
{
37
public
:
38
RadioTraffic
();
39
~RadioTraffic
();
40
41
// accessors:
42
static
void
Initialize
();
43
static
void
Close
();
44
45
static
RadioTraffic
*
GetInstance
() {
return
radio_traffic
; }
46
47
static
void
SendQuickMessage
(
Ship
* ship,
int
msg);
48
static
void
Transmit
(
RadioMessage
* msg);
49
static
void
DiscardMessages
();
50
static
Text
TranslateVox
(
const
char
* phrase);
51
52
void
SendMessage
(
RadioMessage
* msg);
53
void
DisplayMessage
(
RadioMessage
* msg);
54
55
56
protected
:
57
List<RadioMessage>
traffic
;
58
59
static
RadioTraffic
*
radio_traffic
;
60
};
61
62
// +--------------------------------------------------------------------+
63
64
#endif RadioTraffic_h
65
Stars45
RadioTraffic.h
Generated on Tue Jun 5 2012 20:47:08 for Starshatter_Open by
1.8.1