#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< Texture > | AnimationFrames |
| 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 | |
| GameDX * | g_dx |
| Global pointer to the DirectX stuff. | |
| Keyboard * | g_key |
| Global pointer to the Keyboard. | |
| Window * | g_win |
| Global pointer to the Window. | |
| Game * | g_game |
| Global pointer to the Game object. | |
| AnimationManager * | g_am |
| Global pointer to the Animation Manager. | |
| TextureManager * | g_tm |
| Global pointer to the Texture Manager for map tiles. | |
| SoundSystem * | g_snd |
| Global pointer to the Sound Manager. | |
| ConfigFile * | g_cfg |
| Global pointer to the configuration. | |
| TextureManager * | g_hudTm |
| Global pointer to the Texture Manager for the player HUD. | |
| int | g_winSizeX |
| The window width and height. | |
| int | g_winSizeY |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Super IsoBomb. Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
Outputs to the debug window. Also outputs the filename and line number where TRACE is called. Works like printf. |
|
||||||||||||||||||||
|
WndProc.
|
|
||||||||||||||||||||
|
WinMain.
|
|
|
Global pointer to the Animation Manager.
|
|
|
Global pointer to the configuration.
|
|
|
Global pointer to the DirectX stuff. Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck |
|
|
Global pointer to the Game object.
|
|
|
Global pointer to the Texture Manager for the player HUD.
|
|
|
Global pointer to the Keyboard.
|
|
|
Global pointer to the Sound Manager.
|
|
|
Global pointer to the Texture Manager for map tiles.
|
|
|
Global pointer to the Window.
|
|
|
The window width and height. Global so WndProc can modify. |
|
|
|
1.2.18