Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
NetUnitDlg.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: NetUnitDlg.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Multiplayer Unit Selection Dialog Active Window class
13
*/
14
15
#ifndef NetUnitDlg_h
16
#define NetUnitDlg_h
17
18
#include "
Types.h
"
19
#include "
FormWindow.h
"
20
#include "
Bitmap.h
"
21
#include "
Button.h
"
22
#include "
ComboBox.h
"
23
#include "
ListBox.h
"
24
#include "
EditBox.h
"
25
#include "
Font.h
"
26
27
// +--------------------------------------------------------------------+
28
29
class
MenuScreen
;
30
class
NetClientConfig
;
31
class
NetLobby
;
32
class
NetChatEntry
;
33
class
NetUser
;
34
35
// +--------------------------------------------------------------------+
36
37
class
NetUnitDlg
:
public
FormWindow
38
{
39
public
:
40
NetUnitDlg
(
Screen
* s,
FormDef
& def,
MenuScreen
* mgr);
41
virtual
~NetUnitDlg
();
42
43
virtual
void
RegisterControls
();
44
virtual
void
Show
();
45
virtual
void
ExecFrame
();
46
47
// Operations:
48
virtual
void
OnSelect
(
AWEvent
*
event
);
49
virtual
void
OnUnit
(
AWEvent
* event);
50
virtual
void
OnMap
(
AWEvent
* event);
51
virtual
void
OnUnMap
(
AWEvent
* event);
52
virtual
void
OnBan
(
AWEvent
* event);
53
virtual
void
OnBanConfirm
(
AWEvent
* event);
54
virtual
void
OnApply
(
AWEvent
* event);
55
virtual
void
OnCancel
(
AWEvent
* event);
56
57
virtual
void
ExecLobbyFrame
();
58
59
virtual
bool
GetHostMode
()
const
{
return
host_mode
; }
60
virtual
void
SetHostMode
(
bool
h) {
host_mode
= h; }
61
62
protected
:
63
virtual
void
GetAvailable
();
64
virtual
void
GetUnits
();
65
virtual
void
GetChat
();
66
virtual
void
SendChat
(
Text
msg);
67
virtual
void
CheckUnitMapping
();
68
69
MenuScreen
*
manager
;
70
71
ListBox
*
lst_players
;
72
ListBox
*
lst_units
;
73
ListBox
*
lst_chat
;
74
EditBox
*
edt_chat
;
75
76
Button
*
btn_select
;
77
Button
*
btn_map
;
78
Button
*
btn_unmap
;
79
Button
*
btn_ban
;
80
Button
*
btn_apply
;
81
Button
*
btn_cancel
;
82
83
NetLobby
*
net_lobby
;
84
85
int
last_chat
;
86
int
unit_index
;
87
bool
host_mode
;
88
};
89
90
// +--------------------------------------------------------------------+
91
92
#endif NetUnitDlg_h
93
Stars45
NetUnitDlg.h
Generated on Tue Jun 5 2012 20:47:05 for Starshatter_Open by
1.8.1