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
//-----------------------------------------------------------------------------
// Box2D Wrapper Declaration.
// This will server as a wrapper for the Box2D library:
// http://box2d.org/ 
//-----------------------------------------------------------------------------
#ifndef B2DWRAP_H
#define B2DWRAP_H


class B2DWrapper {
public: 
	B2DWrapper();
	~B2DWrapper();

	/// Updates the Box2D System with the elapsed time.
	/// @param elapsedTime since the previous frame
	void Update( float elapsedTime ); 

	/// Adds a new body to the Box2D physics system
	/// @param   b2BodyDef bodyDef of new body
	/// @param   b2ShapeDef shapeDef of new body
	void AddBody( b2Body ** body, b2BodyDef * bodyDef, b2ShapeDef * shapeDef );

	/// Removes a body from the Box2D physics system
	/// @param   b2BodyDef the bodyDef to remove
	void RemoveBody( b2Body * body );

private: 
	b2AABB m_worldAABB;
	b2World * m_world;
};

#endif