Merge branch 'lua_versions' into main/rendor-staging
[ryzomcore.git] / snowballs2 / client / src / snowballs_client.h
blob7f11977b912545b7b2182bde38635e72b56439bd
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2013 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
6 //
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Affero General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Affero General Public License for more details.
17 // You should have received a copy of the GNU Affero General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef SBCLIENT_SNOWBALLS_CLIENT_H
21 #define SBCLIENT_SNOWBALLS_CLIENT_H
22 #include <nel/misc/types_nl.h>
23 #include "snowballs_config.h"
25 #include <nel/misc/types_nl.h>
27 // STL includes
28 // ...
30 // NeL includes
31 #include <nel/misc/rgba.h>
32 #include <nel/misc/ucstring.h>
33 #include <nel/misc/time_nl.h>
34 #include <nel/3d/animation_time.h>
36 // Project includes
37 // ...
39 namespace NLMISC {
40 class CConfigFile;
43 namespace NL3D {
44 class UDriver;
45 class UScene;
46 class UTextContext;
47 class ULandscape;
48 class IStereoDisplay;
49 class IStereoHMD;
52 namespace SBCLIENT {
53 class C3dMouseListener;
55 /*******************************************************************
56 * GLOBALS *
57 *******************************************************************/
59 class CGlobals
61 public:
62 static void assertNull();
65 extern NL3D::UDriver *Driver;
66 extern NL3D::IStereoDisplay *StereoDisplay;
67 extern NL3D::IStereoHMD *StereoHMD;
68 extern NL3D::UScene *Scene;
69 extern NL3D::UTextContext *TextContext;
70 extern NLMISC::CConfigFile *ConfigFile;
71 extern NL3D::ULandscape *Landscape;
72 extern C3dMouseListener *MouseListener;
74 extern NLMISC::TLocalTime LocalTime; // use for delta only
75 extern NLMISC::TLocalTime LocalTimeDelta;
76 // extern NLMISC::TLocalTime ServerTime; // use for delta only
77 // extern NLMISC::TLocalTime ServerTimeDelta;
78 // extern NLMISC::TGameTime GameTime;
79 // extern NLMISC::TGameTime GameTimeDelta;
80 // extern NLMISC::TGameCycle GameCycle;
81 // extern NLMISC::TGameCycle GameCycleDelta;
82 extern NL3D::TGlobalAnimationTime AnimationTime;
83 extern NL3D::TAnimationTime AnimationTimeDelta;
84 extern float FramesPerSecond;
85 extern float FramesPerSecondSmooth;
87 // Stuff for connection
88 extern ucstring Login;
90 /*******************************************************************
91 * SNOWBALLS CLIENT *
92 *******************************************************************/
94 class CSnowballsClient
96 public:
97 static void init();
98 static bool run();
99 static void release();
102 } /* namespace SBCLIENT */
104 #endif /* #ifndef SBCLIENT_SNOWBALLS_CLIENT_H */
106 /* end of file */