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
//-----------------------------------------------------------------------------
// 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
}