You are viewing the NetWars Project

The entrance (WinMain) to the application is in NetWars.cpp. It is currently utilizing DirectX, D3DX, XInput (360 controller), Box2D and eventually Enet for networking.

Last Updated 5/30/08

B2DWrapper.cpp
B2DWrapper.h
Engine.cpp
Engine.h
GameBorder.cpp
GameBorder.h
LinkedList.h
NetWars.cpp
NetWars.h
SceneObject.cpp
SceneObject.h
Shield.cpp
Shield.h
SimpleWindow.cpp
SimpleWindow.h
SpaceShip.cpp
SpaceShip.h
UserInput.cpp
UserInput.h

Zips :
The zip file contains the exe and the dll's needed to run the application.

NetWars.zip


Syntax Highlighting by: SyntaxHighlighter
//-----------------------------------------------------------------------------
// NetWars Primary Header file. 
//-----------------------------------------------------------------------------
#ifndef NETWARS_H
#define NETWARS_H


//-----------------------------------------------------------------------------
// System Includes
//-----------------------------------------------------------------------------

#include 
#include 
using std::string;
#include 
#include 

#include 
#include 

//-----------------------------------------------------------------------------
// DirectX Includes
//-----------------------------------------------------------------------------
#include 
// DirectInput Version Define
#define DIRECTINPUT_VERSION 0x0800
#include 
#include 
#include 

//-----------------------------------------------------------------------------
// Macros
//-----------------------------------------------------------------------------
#define SAFE_DELETE( p )       { if( p ) { delete ( p );     ( p ) = NULL; } }
#define SAFE_DELETE_ARRAY( p ) { if( p ) { delete[] ( p );   ( p ) = NULL; } }
#define SAFE_RELEASE( p )      { if( p ) { ( p )->Release(); ( p ) = NULL; } }

//-----------------------------------------------------------------------------
// Game Includes
//-----------------------------------------------------------------------------
#include "SimpleWindow.h"
#include "B2DWrapper.h"
#include "SceneObject.h" 
#include "Shield.h"
#include "GameBorder.h"
#include "SpaceShip.h"


#include "UserInput.h"
#include "LinkedList.h"

#include "Engine.h" 

//-----------------------------------------------------------------------------
// Externals
//-----------------------------------------------------------------------------
// Functions
extern LRESULT CALLBACK WindowProc( HWND hwnd, UINT uMsg,WPARAM wParam, LPARAM lParam);

// The Engine
extern Engine * g_Engine;

#endif