Page MenuHomePhabricator (Chris)

fire.h
No OneTemporary

Authored By
Unknown
Size
723 B
Referenced Files
None
Subscribers
None
#ifndef _paintown_fire_93c6678306f3542737be4288dc09cfa9
#define _paintown_fire_93c6678306f3542737be4288dc09cfa9
class Bitmap;
namespace Paintown{
struct Wisp{
double x, y;
int life;
int angle;
};
class Fire{
public:
Fire();
void update();
void draw(const Bitmap & work);
virtual ~Fire();
protected:
void updateHotspots();
void updateWisps();
protected:
unsigned char ** data;
/* enough to fill an unsigned char */
static const int MAX_COLORS = 256;
int colors[MAX_COLORS];
static const int MAX_HOTSPOTS = 10;
double hotspots[MAX_HOTSPOTS];
double directions[MAX_HOTSPOTS];
static const int MAX_WISPS = 30;
Wisp wisps[MAX_WISPS];
};
}
#endif

File Metadata

Mime Type
text/x-c++
Expires
Sat, Nov 14, 5:56 PM (7 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
128189
Default Alt Text
fire.h (723 B)

Event Timeline