Leviathan game engine
Leviathan::ClientApplication Class Reference

#include <ClientApplication.h>

+ Inheritance diagram for Leviathan::ClientApplication:

Public Member Functions

DLLEXPORT ClientApplication ()
DLLEXPORT ClientApplication (Engine *engine)
 Version for tests with incomplete engine instance. More...
DLLEXPORT ~ClientApplication ()
NETWORKED_TYPE GetProgramNetType () const override
- Public Member Functions inherited from Leviathan::LeviathanApplication
DLLEXPORT LeviathanApplication ()
DLLEXPORT LeviathanApplication (Engine *engine)
 Version for tests with incomplete engine instance. More...
virtual DLLEXPORT ~LeviathanApplication ()
virtual DLLEXPORT bool Initialize (AppDef *configuration)
DLLEXPORT void ForceRelease ()
 Used to immediately terminate the program. More...
virtual DLLEXPORT void StartRelease ()
 Safely releases the Application //. More...
DLLEXPORT void MarkAsClosing ()
 Thread safely marks the game to close sometime. More...
virtual DLLEXPORT int RunMessageLoop ()
virtual DLLEXPORT float RunSingleUpdate ()
 Runs a single engine update cycle (tick + render) More...
virtual DLLEXPORT bool PassCommandLine (int argcount, char *args[])
virtual DLLEXPORT void Tick (float elapsed)
virtual DLLEXPORT void PreFirstTick ()
DLLEXPORT bool Quitting ()
DLLEXPORT EngineGetEngine ()
DLLEXPORT AppDefGetDefinition ()
DLLEXPORT void ClearTimers ()
 Resets all time sensitive timers. More...
virtual DLLEXPORT bool InitLoadCustomScriptTypes (asIScriptEngine *engine)
virtual DLLEXPORT void CustomizeEnginePostLoad ()
virtual DLLEXPORT void EnginePreShutdown ()
virtual DLLEXPORT std::shared_ptr< GameWorldGetGameWorld (int id)
 Used to query a world for specific id. More...
- Public Member Functions inherited from Leviathan::ThreadSafeGeneric< MutexType >
DLLEXPORT ThreadSafeGeneric ()
DLLEXPORT ~ThreadSafeGeneric ()
FORCE_INLINE void VerifyLock (RecursiveLock &guard) const
FORCE_INLINE void VerifyLock (Lock &lockit) const

Additional Inherited Members

- Public Types inherited from Leviathan::ThreadSafeGeneric< MutexType >
using LockT = typename LockTypeResolver< MutexType >::LType
- Static Public Member Functions inherited from Leviathan::LeviathanApplication
static DLLEXPORT LeviathanApplicationGet ()
static DLLEXPORT void DummyGameConfigurationVariables (GameConfiguration *configobj)
static DLLEXPORT void DummyGameKeyConfigVariables (KeyConfiguration *keyconfigobj)
static DLLEXPORT void StartServerProcess (const std::string &processname, const std::string &commandline)
static DLLEXPORT std::vector< std::string > CommandLineStringSplitter (const char *str, std::vector< char * > &argcharstrings, bool addprogramname=true)
 Splits a single string command line into arguments. More...
- Protected Member Functions inherited from Leviathan::LeviathanApplication
virtual DLLEXPORT void Release ()
 Performs the final steps in the release process. More...
virtual DLLEXPORT void _InternalInit ()
virtual NetworkInterface_GetApplicationPacketHandler ()=0
 Called in Initialize to get the derived packet handler type. More...
virtual void _ShutdownApplicationPacketHandler ()=0
- Protected Attributes inherited from Leviathan::LeviathanApplication
bool Quit = false
bool ShouldQuit = false
bool QuitSometime = false
 This can be quickly set anywhere to quit sometime in the future. More...
bool ExternalEngineInstance = false
AppDefApplicationConfiguration = nullptr
bool PreferSleepOverLoopAccuracy = false
- Protected Attributes inherited from Leviathan::ThreadSafeGeneric< MutexType >
MutexType ObjectsLock
- Static Protected Attributes inherited from Leviathan::LeviathanApplication
static LeviathanApplicationCurapp = NULL

Detailed Description

Definition at line 10 of file ClientApplication.h.

Constructor & Destructor Documentation

◆ ClientApplication() [1/2]

DLLEXPORT ClientApplication::ClientApplication ( )

Definition at line 6 of file ClientApplication.cpp.

6 {}

◆ ClientApplication() [2/2]

DLLEXPORT ClientApplication::ClientApplication ( Engine engine)

Version for tests with incomplete engine instance.

Definition at line 8 of file ClientApplication.cpp.

8  : LeviathanApplication(engine)
9 {}

◆ ~ClientApplication()

DLLEXPORT ClientApplication::~ClientApplication ( )

Definition at line 11 of file ClientApplication.cpp.

11 {}

Member Function Documentation

◆ GetProgramNetType()

NETWORKED_TYPE Leviathan::ClientApplication::GetProgramNetType ( ) const

Implements Leviathan::LeviathanApplication.

Definition at line 19 of file ClientApplication.h.

The documentation for this class was generated from the following files: