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
//-----------------------------------------------------------------------------
// GameBorder implementation.
//-----------------------------------------------------------------------------

#include "NetWars.h"

//-----------------------------------------------------------------------------
// The GameBorder class constructor.
//-----------------------------------------------------------------------------
GameBorder::GameBorder( ) 
{	

	m_objectType = "GameBorder";
	m_width = GAMEBORDER_WIDTH;
	m_height = GAMEBORDER_HEIGHT;

	simplevertex vertices[] =
	{
		{ -m_width, -m_height, 0.0f, }, 
		{ -m_width,  m_height, 0.0f, },
		{  m_width,  m_height, 0.0f, }, 
		{  m_width, -m_height, 0.0f, }, 
		{ -m_width, -m_height, 0.0f, },  
	};

	Initialize( 0.0f, 0.0f );

	int numberOfVerticies = (int) sizeof( vertices ) / sizeof( simplevertex );
	CreateVertexBuffer( vertices, numberOfVerticies );

	//m_shieldRadius = 10.0f;
}

//-----------------------------------------------------------------------------
// The GameBorder Get the Width;
//-----------------------------------------------------------------------------
float GameBorder::GetWidth( ) 
{
	return m_width;
}

//-----------------------------------------------------------------------------
// The GameBorder Get the Height;
//-----------------------------------------------------------------------------
float GameBorder::GetHeight( ) 
{
	return m_height;
}

void GameBorder::SetUpPhysics()
{
	// The GameBorder's Physics objects are set up in B2DWrapper's Constructor
}