-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCFireRoutine.h
47 lines (36 loc) · 1.03 KB
/
CFireRoutine.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// CFireRoutine.h: interface for the CFireRoutine class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CFIREROUTINE_H__413FF819_B711_4B5A_8EC1_580A70862BE4__INCLUDED_)
#define AFX_CFIREROUTINE_H__413FF819_B711_4B5A_8EC1_580A70862BE4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <Windows.h>
class CFireRoutine
{
public:
CFireRoutine();
virtual ~CFireRoutine();
// Functs (public)
void InitFire();
void ClrHotSpots();
void InitPallette();
void SetHotSpots();
void Render(DWORD* pVideoMemory, int iwidth, int iheight);
void MakeLines();
unsigned char Average(int x, int y);
// props
int m_iFlameHeight;
int m_iWidth;
int m_iHeight;
int m_iFireSource;//The y position for the lit spots
int m_iFireChance;
int m_iAvgFlameWidth;
int m_iAlpha;
COLORREF m_FireColors[4];
BYTE* m_pFireBits;
DWORD m_pPalletteBuffer[256];
long* m_pYIndexes;
};
#endif // !defined(AFX_CFIREROUTINE_H__413FF819_B711_4B5A_8EC1_580A70862BE4__INCLUDED_)