..I am doing exactly what you are telling me to do but my code reports a "fatal external error" of some kind.
This is my class in "Player.h"
Code: Select all
class Particle
{
public:
Particle( D3DGraphics *gfx, KeyboardClient *kbd );
Particle();
~Particle();
void drawSprite();
void updatePosition();
private:
D3DGraphics *pGfx;
KeyboardClient *pKbd;
float pX;
float pY;
int size;
int health;
};
Code: Select all
Game::Game( HWND hWnd,const KeyboardServer& kServer,const MouseServer& mServer )
: gfx( hWnd ),
audio( hWnd ),
kbd( kServer ),
mouse( mServer )
{
for(int i = 0; i < 10; i++)
Charlie[ i ] = Particle( &gfx, &kbd );
}