Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

IsoBomb.h File Reference

#include <windows.h>
#include <d3d8.h>
#include <d3dx8.h>
#include <Dxerr8.h>
#include <dinput.h>
#include <assert.h>
#include <ctime>
#include <cmath>
#include <cstdio>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <list>
#include <algorithm>
#include <set>
#include <map>
#include <functional>
#include <mmsystem.h>
#include <mmreg.h>
#include <msacm.h>
#include <dsound.h>
#include "sound/SndMan.h"
#include "GameDX.h"
#include "Window.h"
#include "Keyboard.h"
#include "Timer.h"
#include "Point.h"
#include "Rect.h"
#include "Vector.h"
#include "jrnd.h"

Go to the source code of this file.

Defines

#define WIN32_LEAN_AND_MEAN
 Super IsoBomb.

#define _WIN32_WINNT   0x0500
#define _WIN32_WINDOWS   0x0410
#define WINVER   0x0400
#define DIRECTINPUT_VERSION   0x0800
#define TRACE(x)   ((void)0)
#define TRACE1(x, y)   ((void)0)
#define TRACE2(x, y, z)   ((void)0)
#define TRACE3(x, y, z, a)   ((void)0)
#define TRACE4(x, y, z, a, b)   ((void)0)
#define sq(x)   ( (x) * (x) )
#define M_PI   3.14159265358979323846
#define M_PI_F   3.14159265358979323846f
#define DEFAULT_WINDOW_WIDTH   800
#define DEFAULT_WINDOW_HEIGHT   600
#define DEFAULT_WINDOWED   TRUE
#define WINDOW_TITLE   "Super IsoBomb"
#define DISPLAY_FPS   TRUE
#define DRAW_BOUNDING_BOXES   FALSE
#define DIRECTION_UPLEFT   0
#define DIRECTION_UPRIGHT   1
#define DIRECTION_DOWNRIGHT   2
#define DIRECTION_DOWNLEFT   3

Typedefs

typedef LPDIRECT3DTEXTURE8 Texture
typedef LPDIRECT3DDEVICE8 GraphicsDevice
typedef std::vector< TextureAnimationFrames
typedef AnimationFrames::iterator AFramesIter

Functions

int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
 WinMain.

LRESULT CALLBACK GlobalWndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 WndProc.

void doTrace (const char *fn, int lineno, const char *msg,...)
 Outputs to the debug window.


Variables

GameDXg_dx
 Global pointer to the DirectX stuff.

Keyboardg_key
 Global pointer to the Keyboard.

Windowg_win
 Global pointer to the Window.

Gameg_game
 Global pointer to the Game object.

AnimationManagerg_am
 Global pointer to the Animation Manager.

TextureManagerg_tm
 Global pointer to the Texture Manager for map tiles.

SoundSystemg_snd
 Global pointer to the Sound Manager.

ConfigFileg_cfg
 Global pointer to the configuration.

TextureManagerg_hudTm
 Global pointer to the Texture Manager for the player HUD.

int g_winSizeX
 The window width and height.

int g_winSizeY


Define Documentation

#define _WIN32_WINDOWS   0x0410
 

#define _WIN32_WINNT   0x0500
 

#define DEFAULT_WINDOW_HEIGHT   600
 

#define DEFAULT_WINDOW_WIDTH   800
 

#define DEFAULT_WINDOWED   TRUE
 

#define DIRECTINPUT_VERSION   0x0800
 

#define DIRECTION_DOWNLEFT   3
 

#define DIRECTION_DOWNRIGHT   2
 

#define DIRECTION_UPLEFT   0
 

#define DIRECTION_UPRIGHT   1
 

#define DISPLAY_FPS   TRUE
 

#define DRAW_BOUNDING_BOXES   FALSE
 

#define M_PI   3.14159265358979323846
 

#define M_PI_F   3.14159265358979323846f
 

#define sq      ( (x) * (x) )
 

#define TRACE      ((void)0)
 

#define TRACE1 x,
     ((void)0)
 

#define TRACE2 x,
y,
     ((void)0)
 

#define TRACE3 x,
y,
z,
     ((void)0)
 

#define TRACE4 x,
y,
z,
a,
     ((void)0)
 

#define WIN32_LEAN_AND_MEAN
 

Super IsoBomb.

Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck

#define WINDOW_TITLE   "Super IsoBomb"
 

#define WINVER   0x0400
 


Typedef Documentation

typedef AnimationFrames::iterator AFramesIter
 

typedef std::vector< Texture > AnimationFrames
 

typedef LPDIRECT3DDEVICE8 GraphicsDevice
 

typedef LPDIRECT3DTEXTURE8 Texture
 


Function Documentation

void doTrace const char *    fn,
int    lineno,
const char *    msg,
...   
 

Outputs to the debug window.

Also outputs the filename and line number where TRACE is called. Works like printf.

LRESULT CALLBACK GlobalWndProc HWND    hWnd,
UINT    message,
WPARAM    wParam,
LPARAM    lParam
 

WndProc.

int APIENTRY WinMain HINSTANCE    hInstance,
HINSTANCE    hPrevInstance,
LPSTR    lpCmdLine,
int    nShowCmd
 

WinMain.


Variable Documentation

AnimationManager* g_am
 

Global pointer to the Animation Manager.

ConfigFile* g_cfg
 

Global pointer to the configuration.

GameDX* g_dx  
 

Global pointer to the DirectX stuff.

Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck

Game* g_game
 

Global pointer to the Game object.

TextureManager* g_hudTm
 

Global pointer to the Texture Manager for the player HUD.

Keyboard* g_key
 

Global pointer to the Keyboard.

SoundSystem* g_snd
 

Global pointer to the Sound Manager.

TextureManager* g_tm
 

Global pointer to the Texture Manager for map tiles.

Window* g_win
 

Global pointer to the Window.

int g_winSizeX
 

The window width and height.

Global so WndProc can modify.

int g_winSizeY
 


Generated on Tue Mar 4 02:29:25 2003 for SuperIsoBomb by doxygen1.2.18