Imports the current Win32 source for the pod-racing game 'Red Planet', built on the MUNGA engine and its L4 (Win32/DirectX) platform layer: - MUNGA / MUNGA_L4: cross-platform engine core and Win32 backend - RP / RP_L4: Red Planet game logic and Win32 application - DivLoader, Setup1: asset loader and installer project - lib, MUNGA_L4/openal, MUNGA_L4/sos: third-party audio dependencies Removed stale Subversion metadata and added .gitignore/.gitattributes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
35 lines
668 B
C++
35 lines
668 B
C++
#pragma once
|
|
|
|
#include "app.h"
|
|
|
|
extern HWND ghWnd;
|
|
|
|
class ApplicationManager : public Node
|
|
{
|
|
public:
|
|
ApplicationManager(HINSTANCE hInstance, HWND hWnd, Scalar frame_rate);
|
|
~ApplicationManager();
|
|
|
|
void StartApplication(Application *new_app);
|
|
|
|
void RunMissions();
|
|
|
|
Scalar GetFrameRate()
|
|
{
|
|
Check(this);
|
|
return frameRate;
|
|
}
|
|
|
|
HINSTANCE GetHInstance() { return mHInstance; }
|
|
HWND GetHWnd() { return ghWnd; }
|
|
|
|
static ApplicationManager* GetCurrentManager() { return CurrentAppManager; }
|
|
|
|
protected:
|
|
static ApplicationManager* CurrentAppManager;
|
|
|
|
Scalar frameDuration, frameRate;
|
|
SChainOf<Application*> runningApplications;
|
|
HINSTANCE mHInstance;
|
|
};
|