Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
NetChat.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: NetChat.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Single chat message and sender
13
*/
14
15
16
#ifndef NetChat_h
17
#define NetChat_h
18
19
#include "
Types.h
"
20
#include "
NetUser.h
"
21
22
// +-------------------------------------------------------------------+
23
24
class
NetChatEntry
25
{
26
public
:
27
static
const
char
*
TYPENAME
() {
return
"NetChatEntry"
; }
28
29
NetChatEntry
(
const
NetUser
* user,
const
char
* msg);
30
NetChatEntry
(
int
id
,
const
char
* user,
const
char
* msg);
31
~NetChatEntry
();
32
33
int
operator ==
(
const
NetChatEntry
& c)
const
{
return
id
== c.id; }
34
int
operator <
(
const
NetChatEntry
& c)
const
{
return
id
< c.id; }
35
36
int
GetID
()
const
{
return
id; }
37
const
Text
&
GetUser
()
const
{
return
user; }
38
Color
GetColor
()
const
{
return
color; }
39
const
Text
&
GetMessage
()
const
{
return
msg; }
40
DWORD
GetTime
()
const
{
return
time; }
41
42
private
:
43
int
id;
44
Text
user;
45
Text
msg;
46
Color
color;
47
DWORD time;
48
};
49
50
// +-------------------------------------------------------------------+
51
52
#endif NetChat_h
Stars45
NetChat.h
Generated on Tue Jun 5 2012 20:47:02 for Starshatter_Open by
1.8.1