Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Tactics3DLobbyScreen.h
Go to the documentation of this file.
1 // Copyright (C) 2014 Dylan Blair
3 //
4 // email: dblair@alumni.cs.utexas.edu
5 //
6 // This file is part of Tactics3D.
7 //
8 // Tactics3D is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 2 of the License, or
11 // (at your option) any later version.
12 //
13 // Tactics3D is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
17 //
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 
23 #ifndef TACTICS3DLOBBY_SCREEN_H
24 #define TACTICS3DLOBBY_SCREEN_H
25 
26 #include "../Libs/Graphics_LIB/GUIScreen.h"
27 #include "../Libs/Utils_LIB/UThread.h"
28 
29 namespace Tactics3D {
30  class App;
31 
33 #ifdef _WIN32
34  DWORD WINAPI serverAccept(LPVOID arg);
35 #else
36  void* serverAccept(void* arg);
37 #endif
38 
41 #ifdef _WIN32
42  friend DWORD WINAPI serverAccept(LPVOID arg);
43 #else
44  friend void* serverAccept(void* arg);
45 #endif
46  OpenSkyNet::Utils::Thread _serverThread;
47  volatile bool _pushSetupScreenNextUpdate;
48  protected:
49  virtual void setupEventHandlers();
50 
51  bool handleBackButton(const CEGUI::EventArgs& e);
52  bool handleHostButton(const CEGUI::EventArgs& e);
53  bool handleJoinButton(const CEGUI::EventArgs& e);
54  public:
55  LobbyScreen(App* app_);
56 
57  virtual bool update(float dt_);
58 
59  virtual void unload();
60 
61  virtual ~LobbyScreen() {}
62  };
63 }
64 
65 #endif //TACTICS3DLOBBY_SCREEN_H
void * serverAccept(void *arg)
Definition: Tactics3DLobbyScreen.cpp:83
virtual bool update(float dt_)
Definition: Tactics3DLobbyScreen.cpp:12
virtual void setupEventHandlers()
Definition: Tactics3DLobbyScreen.cpp:23
LobbyScreen(App *app_)
Definition: Tactics3DLobbyScreen.cpp:10
bool handleBackButton(const CEGUI::EventArgs &e)
Definition: Tactics3DLobbyScreen.cpp:68
Definition: Tactics3DLobbyScreen.h:40
Definition: UThread.h:111
virtual ~LobbyScreen()
Definition: Tactics3DLobbyScreen.h:61
virtual void unload()
Definition: Tactics3DLobbyScreen.cpp:43
bool handleHostButton(const CEGUI::EventArgs &e)
Definition: Tactics3DLobbyScreen.cpp:98
Definition: GUIScreen.h:63
Definition: Tactics3DApp.h:90
bool handleJoinButton(const CEGUI::EventArgs &e)
Definition: Tactics3DLobbyScreen.cpp:125
friend void * serverAccept(void *arg)
Definition: Tactics3DLobbyScreen.cpp:83