CFireRoutine.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // CFireRoutine.h: interface for the CFireRoutine class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_CFIREROUTINE_H__413FF819_B711_4B5A_8EC1_580A70862BE4__INCLUDED_)
  5. #define AFX_CFIREROUTINE_H__413FF819_B711_4B5A_8EC1_580A70862BE4__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include <Windows.h>
  10. class CFireRoutine
  11. {
  12. public:
  13. CFireRoutine();
  14. virtual ~CFireRoutine();
  15. // Functs (public)
  16. void InitFire();
  17. void ClrHotSpots();
  18. void InitPallette();
  19. void SetHotSpots();
  20. void MakeLines();
  21. void Render(DWORD* pVideoMemory,int iwidth,int iheight);
  22. unsigned char Average(int x, int y);
  23. // props
  24. int m_iFlameHeight;
  25. int m_iWidth;
  26. int m_iHeight;
  27. int m_iFireSource;//The y position for the lit spots
  28. int m_iFireChance;
  29. int m_iAvgFlameWidth;
  30. int m_iAlpha;
  31. COLORREF m_FireColors[4];
  32. BYTE* m_pFireBits;
  33. DWORD m_pPalletteBuffer[256];
  34. long* m_pYIndexes;
  35. };
  36. #endif // !defined(AFX_CFIREROUTINE_H__413FF819_B711_4B5A_8EC1_580A70862BE4__INCLUDED_)