viettiennguyen029

FlameEffects.h

Jun 10th, 2020
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1. #pragma once
  2. #include "GameObject.h"
  3.  
  4. #define EFFECT_LIFESPAN 300
  5.  
  6. #define FLAME_BBOX_WIDTH        8
  7. #define FLAME_BBOX_HEIGHT   8
  8.  
  9. class HitEffect: public CGameObject
  10. {
  11.     DWORD  startToShow;
  12. public:
  13.     HitEffect();
  14.     void Show();
  15.     void End();
  16.     virtual void Render(); 
  17.     virtual void GetBoundingBox(float& left, float& top, float& right, float& bottom) ;
  18. };
  19.  
  20. #pragma once
  21. #include "HitEffect.h"
  22. #include "GameObject.h"
  23. class FlamesEffect
  24. {
  25.     vector<HitEffect*> flames;
  26.     static FlamesEffect* __instance;
  27.  
  28. public:
  29.     void Add(HitEffect* flame);
  30.     //void  Show(LPGAMEOBJECT obj);
  31.  
  32.     FlamesEffect() { ; }
  33.     static FlamesEffect* GetInstance();
  34. };
Add Comment
Please, Sign In to add comment