Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F621093
fire.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
723 B
Referenced Files
None
Subscribers
None
fire.h
View Options
#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
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 6:45 PM (12 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
128189
Default Alt Text
fire.h (723 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline