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
//-----------------------------------------------------------------------------
// Shield Declaration
//-----------------------------------------------------------------------------
#ifndef SHIELD_H
#define SHIELD_H

class Shield : public SceneObject 
{
public:
	
	Shield( float x, float y, float radius );

	// The Shield UpdateShieldRadius creates the vetex buffer with 
	// the vertexes for the defined radius. 
	void UpdateShieldRadius( float radius );

	void SetUpWeaponBody( float x, float y );

	void DestroyWeaponBody(  );

	void Fire( float x, float y, float angle );
	
	void Attach( );

	void SetUpPhysics( float x, float y );

protected:
	float m_radius;
	float m_weaponRadius;
	float m_shieldRadius;
	bool m_active;
	bool m_grow;
	bool m_detatched;
};


#endif