|
#pragma once
#include "Act.h"
#include "StarCoordinate.h"
class Explosion
: public IAnimator
{
public:
struct Info
{
s32 Alpha;
StarCoordinate Coor;
s32 FadeUp;
Info(StarCoordinate& co = StarCoordinate()) : Alpha(0), FadeUp(75), Coor(co) {}
};
public:
Explosion(StarCoordinate& coLocation);
~Explosion(void);
void setFont(IGUIFont* pFont);
void setTime(u32 uTime);
void animate();
void updateInfo(Info& rInfo);
void drawInfo(Info& rInfo, u32 uTime);
virtual void draw(u32 uTime);
virtual bool isDead();
virtual void endAnimator();
// no need for supporting this
virtual void show() {}
virtual void hide() {}
void createExplosion();
protected:
StarCoordinate m_coLocation;
IGUIFont* m_pFont;
u32 m_uTime;
int m_iCount;
bool m_bDead;
Info m_arrDirectA[4];
Info m_arrDirectB[4];
Info m_arrDirectC[4];
Info m_arrDirectD[4];
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm from Belgium, happily (should my wife ever read this) married and have two boys.
After a first attempt on the Atari during college in
an old foreign dialect of basic, via Pascal I am now
developing mostly in VC++ / VB / C#.