EmitterInstanceList.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /***********************************************************************************************
  19. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : W3DView *
  23. * *
  24. * $Archive:: /VSS_Sync/W3DView/EmitterInstanceList.h $Modtime:: $*
  25. * *
  26. * $Revision:: 6 $*
  27. * *
  28. *---------------------------------------------------------------------------------------------*
  29. * Functions: *
  30. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  31. #if defined(_MSC_VER)
  32. #pragma once
  33. #endif
  34. #ifndef __EMITTER_INSTANCE_LIST_H
  35. #define __EMITTER_INSTANCE_LIST_H
  36. #include "Vector.H"
  37. #include "Part_Ldr.H"
  38. #include "Part_Emt.H"
  39. /////////////////////////////////////////////////////////////////////
  40. //
  41. // EmitterInstanceListClass
  42. //
  43. /////////////////////////////////////////////////////////////////////
  44. class EmitterInstanceListClass : public ParticleEmitterDefClass
  45. {
  46. public:
  47. ///////////////////////////////////////////////////////
  48. // Public constructors/destructors
  49. ///////////////////////////////////////////////////////
  50. EmitterInstanceListClass (void) { }
  51. EmitterInstanceListClass (const EmitterInstanceListClass &src)
  52. : ParticleEmitterDefClass (src) { }
  53. virtual ~EmitterInstanceListClass (void);
  54. ///////////////////////////////////////////////////////
  55. // Public methods
  56. ///////////////////////////////////////////////////////
  57. virtual void Add_Emitter (ParticleEmitterClass *emitter);
  58. virtual void Free_List (void);
  59. ///////////////////////////////////////////////////////
  60. // Derived overrides
  61. ///////////////////////////////////////////////////////
  62. //
  63. // Note: The following are settings that can be changed on
  64. // the fly. All other settings are simply cached in the
  65. // definition and can be used to create a new prototype loader.
  66. //
  67. virtual void Set_Velocity (const Vector3 &value);
  68. virtual void Set_Acceleration (const Vector3 &value);
  69. virtual void Set_Burst_Size (unsigned int count);
  70. virtual void Set_Outward_Vel (float value);
  71. virtual void Set_Vel_Inherit (float value);
  72. //
  73. // Randomizer accessors
  74. //
  75. virtual void Set_Velocity_Random (Vector3Randomizer *randomizer);
  76. //
  77. // Keyframe accessors
  78. //
  79. virtual void Set_Color_Keyframes (ParticlePropertyStruct<Vector3> &keyframes);
  80. virtual void Set_Opacity_Keyframes (ParticlePropertyStruct<float> &keyframes);
  81. virtual void Set_Size_Keyframes (ParticlePropertyStruct<float> &keyframes);
  82. virtual void Set_Rotation_Keyframes (ParticlePropertyStruct<float> &keyframes, float orient_rnd);
  83. virtual void Set_Frame_Keyframes (ParticlePropertyStruct<float> &keyframes);
  84. virtual void Set_Blur_Time_Keyframes (ParticlePropertyStruct<float> &keyframes);
  85. virtual void Get_Color_Keyframes (ParticlePropertyStruct<Vector3> &keyframes) const;
  86. virtual void Get_Opacity_Keyframes (ParticlePropertyStruct<float> &keyframes) const;
  87. virtual void Get_Size_Keyframes (ParticlePropertyStruct<float> &keyframes) const;
  88. private:
  89. ///////////////////////////////////////////////////////
  90. // Private member data
  91. ///////////////////////////////////////////////////////
  92. DynamicVectorClass<ParticleEmitterClass *> m_List;
  93. };
  94. #endif //__EMITTER_INSTANCE_LIST_H