AttenuationSphere.h 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 : LevelEdit *
  23. * *
  24. * $Archive:: /Commando/Code/Tools/LevelEdit/AttenuationSphere.h $*
  25. * *
  26. * Author:: Patrick Smith *
  27. * *
  28. * $Modtime:: 4/04/00 8:02p $*
  29. * *
  30. * $Revision:: 2 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #if defined(_MSC_VER)
  36. #pragma once
  37. #endif
  38. #ifndef __ATTENUATIONSPHERE_H
  39. #define __ATTENUATIONSPHERE_H
  40. #include "Utils.h"
  41. #include "EditorPhys.h"
  42. #include "Vector3.h"
  43. // Forward declarations
  44. class NodeClass;
  45. ///////////////////////////////////////////////////////////////////////////////
  46. //
  47. // AttenuationSphereClass
  48. //
  49. ///////////////////////////////////////////////////////////////////////////////
  50. class AttenuationSphereClass : public EditorPhysClass
  51. {
  52. public:
  53. ////////////////////////////////////////////////////////
  54. // Public contsructors/destructors
  55. ////////////////////////////////////////////////////////
  56. AttenuationSphereClass (void);
  57. virtual ~AttenuationSphereClass (void);
  58. ////////////////////////////////////////////////////////
  59. // Public methods
  60. ////////////////////////////////////////////////////////
  61. void Display_Around_Node (const NodeClass &node);
  62. void Display_Around_Node (const RenderObjClass &render_obj);
  63. void Remove_From_Scene (void);
  64. void Set_Color (const Vector3 &color);
  65. void Set_Radius (float radius);
  66. void Set_Opacity (float opacity);
  67. private:
  68. ////////////////////////////////////////////////////////
  69. // Private member data
  70. ////////////////////////////////////////////////////////
  71. bool m_IsInScene;
  72. Vector3 m_Color;
  73. float m_Radius;
  74. float m_Opacity;
  75. };
  76. #endif //__ATTENUATIONSPHERE_H