home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / xenon / includes / dusteffect.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-15  |  1.1 KB  |  50 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CDustEffect
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CParticleEffect
  10. //
  11. // Derived:    CStandardDustEffect
  12. //            CHighDensityDustEffect
  13. //
  14. //-------------------------------------------------------------
  15.  
  16. #ifndef _INCLUDE_DUSTEFFECT_H
  17. #define _INCLUDE_DUSTEFFECT_H
  18.  
  19. #include "particleeffect.h"
  20.  
  21. //-------------------------------------------------------------
  22.  
  23. class CDustEffect : public CParticleEffect
  24. {
  25.     private:
  26.         gsCRandom m_random;
  27.  
  28.         Particle *createParticle();
  29. };
  30.  
  31. //-------------------------------------------------------------
  32.  
  33. class CStandardDustEffect : public CDustEffect
  34. {
  35.     public:
  36.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_STANDARD_DUST_EFFECT]; };
  37. };
  38.  
  39. //-------------------------------------------------------------
  40.  
  41. class CHighDensityDustEffect : public CDustEffect
  42. {
  43.     public:
  44.         const ActorInfo& getActorInfo() { return ActorInfoList[INFO_HIGHDENSITY_DUST_EFFECT]; };
  45. };
  46.  
  47. //-------------------------------------------------------------
  48.  
  49. #endif
  50.