Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Game.cpp File Reference
#include "MemDebug.h"
#include "Game.h"
#include "Mouse.h"
#include "Universe.h"
#include "Screen.h"
#include "Window.h"
#include "EventDispatch.h"
#include "Color.h"
#include "DataLoader.h"
#include "Keyboard.h"
#include "Pcx.h"
#include "Resource.h"
#include "Bitmap.h"
#include "MachineInfo.h"
#include "Video.h"
#include "VideoFactory.h"
#include "VideoSettings.h"
#include "AviFile.h"
#include "ContentBundle.h"

Go to the source code of this file.

Macros

#define WM_MOUSEWHEEL   0x20A

Functions

bool ProfileGameLoop (void)
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM uParam, LPARAM lParam)
void FlushKeys ()
void BufferKey (int vkey)
int GetKey ()
int GetKeyPlus (int &key, int &shift)
void Print (const char *fmt,...)
DWORD GetRealTime ()

Variables

FILE * ErrLog = 0
int ErrLine = 0
char ErrBuf [1024]
Gamegame = 0
const int VIDEO_FPS = 30
const double MAX_FRAME_TIME_VIDEO = 1.0 / (double) VIDEO_FPS
const double MAX_FRAME_TIME_NORMAL = 1.0 / 5.0
const double MIN_FRAME_TIME_NORMAL = 1.0 / 60.0
const int MAX_KEY_BUF = 512

Macro Definition Documentation

#define WM_MOUSEWHEEL   0x20A

Definition at line 1270 of file Game.cpp.


Function Documentation

void BufferKey ( int  vkey)

Definition at line 1464 of file Game.cpp.

void FlushKeys ( )

Definition at line 1457 of file Game.cpp.

int GetKey ( )

Definition at line 1493 of file Game.cpp.

int GetKeyPlus ( int &  key,
int &  shift 
)

Definition at line 1505 of file Game.cpp.

DWORD GetRealTime ( )

Definition at line 1532 of file Game.cpp.

void Print ( const char *  fmt,
  ... 
)

Definition at line 1520 of file Game.cpp.

bool ProfileGameLoop ( void  )

Definition at line 909 of file Game.cpp.

LRESULT CALLBACK WndProc ( HWND  hwnd,
UINT  message,
WPARAM  uParam,
LPARAM  lParam 
)

Definition at line 1273 of file Game.cpp.


Variable Documentation

char ErrBuf[1024]

Definition at line 35 of file Game.cpp.

int ErrLine = 0

Definition at line 34 of file Game.cpp.

FILE* ErrLog = 0

Definition at line 33 of file Game.cpp.

Game* game = 0

Definition at line 37 of file Game.cpp.

const double MAX_FRAME_TIME_NORMAL = 1.0 / 5.0

Definition at line 51 of file Game.cpp.

const double MAX_FRAME_TIME_VIDEO = 1.0 / (double) VIDEO_FPS

Definition at line 50 of file Game.cpp.

const int MAX_KEY_BUF = 512

Definition at line 1450 of file Game.cpp.

const double MIN_FRAME_TIME_NORMAL = 1.0 / 60.0

Definition at line 52 of file Game.cpp.

const int VIDEO_FPS = 30

Definition at line 49 of file Game.cpp.