Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
NetClientDlg.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: NetClientDlg.h
7
AUTHOR: John DiCamillo
8
9
10
OVERVIEW
11
========
12
Main Menu Dialog Active Window class
13
*/
14
15
#ifndef NetClientDlg_h
16
#define NetClientDlg_h
17
18
#include "
Types.h
"
19
#include "
NetClientConfig.h
"
20
#include "
NetLobby.h
"
21
22
#include "
FormWindow.h
"
23
#include "
Bitmap.h
"
24
#include "
Button.h
"
25
#include "
ComboBox.h
"
26
#include "
ListBox.h
"
27
#include "
Font.h
"
28
29
// +--------------------------------------------------------------------+
30
31
class
MenuScreen
;
32
33
// +--------------------------------------------------------------------+
34
35
class
NetClientDlg
:
public
FormWindow
36
{
37
public
:
38
NetClientDlg
(
Screen
* s,
FormDef
& def,
MenuScreen
* mgr);
39
virtual
~NetClientDlg
();
40
41
virtual
void
RegisterControls
();
42
virtual
void
Show
();
43
virtual
void
ExecFrame
();
44
45
// Operations:
46
virtual
void
OnSelect
(
AWEvent
*
event
);
47
virtual
void
OnAdd
(
AWEvent
* event);
48
virtual
void
OnDel
(
AWEvent
* event);
49
virtual
void
OnServer
(
AWEvent
* event);
50
virtual
void
OnHost
(
AWEvent
* event);
51
virtual
void
OnJoin
(
AWEvent
* event);
52
virtual
void
OnCancel
(
AWEvent
* event);
53
54
virtual
void
ShowServers
();
55
virtual
void
UpdateServers
();
56
virtual
void
PingServer
(
int
n);
57
virtual
bool
PingComplete
();
58
virtual
void
StopNetProc
();
59
60
protected
:
61
MenuScreen
*
manager
;
62
NetClientConfig
*
config
;
63
64
Button
*
btn_add
;
65
Button
*
btn_del
;
66
ListBox
*
lst_servers
;
67
ActiveWindow
*
lbl_info
;
68
int
server_index
;
69
int
ping_index
;
70
HANDLE
hnet
;
71
NetServerInfo
ping_info
;
72
73
Button
*
btn_server
;
74
Button
*
btn_host
;
75
Button
*
btn_join
;
76
Button
*
btn_cancel
;
77
};
78
79
#endif NetClientDlg_h
80
Stars45
NetClientDlg.h
Generated on Tue Jun 5 2012 20:47:03 for Starshatter_Open by
1.8.1