NodeSettingsInterface.h 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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/NodeSettingsInterface.h $Modtime:: $*
  25. * *
  26. * $Revision:: 3 $*
  27. * *
  28. *---------------------------------------------------------------------------------------------*
  29. * Functions: *
  30. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  31. #if defined(_MSC_VER)
  32. #pragma once
  33. #endif
  34. #ifndef __NODE_SETTINGS_INTERFACE_H
  35. #define __NODE_SETTINGS_INTERFACE_H
  36. #include "Vector3.H"
  37. /////////////////////////////////////////////////////////////////////////////
  38. //
  39. // LightSettingsClass
  40. //
  41. // Abstract virtual class that defines an interface for manipulating light
  42. // specific settings.
  43. //
  44. class LightSettingsClass
  45. {
  46. public:
  47. ///////////////////////////////////////////////////
  48. //
  49. // Public methods
  50. //
  51. //
  52. // Information retrieval methods
  53. //
  54. virtual const Vector3 & Get_Ambient_Color (void) const = 0;
  55. virtual const Vector3 & Get_Diffuse_Color (void) const = 0;
  56. virtual const Vector3 & Get_Specular_Color (void) const = 0;
  57. virtual float Get_Intensity (void) const = 0;
  58. virtual void Get_Attenuation (float &inner, float &outer) const = 0;
  59. //
  60. // Information manipulation methods
  61. //
  62. virtual void Set_Ambient_Color (const Vector3 &color) = 0;
  63. virtual void Set_Diffuse_Color (const Vector3 &color) = 0;
  64. virtual void Set_Specular_Color (const Vector3 &color) = 0;
  65. virtual void Set_Intensity (float intensity) = 0;
  66. virtual void Set_Attenuation (float inner, float outer) = 0;
  67. //
  68. // Update methods
  69. //
  70. virtual void Update_Light (void) {}
  71. };
  72. /////////////////////////////////////////////////////////////////////////////
  73. //
  74. // SoundSettingsClass
  75. //
  76. // Abstract virtual class that defines an interface for manipulating sound
  77. // specific settings.
  78. //
  79. class SoundSettingsClass
  80. {
  81. public:
  82. ///////////////////////////////////////////////////
  83. //
  84. // Public methods
  85. //
  86. //
  87. // Information retrieval methods
  88. //
  89. //
  90. // Information manipulation methods
  91. //
  92. //
  93. // Update methods
  94. //
  95. virtual void Update_Sound (void) {}
  96. virtual float Get_Volume (void) const = 0;
  97. virtual void Set_Volume (float volume) = 0;
  98. virtual int Get_Loop_Count (void) const = 0;
  99. virtual void Set_Loop_Count (int count) = 0;
  100. virtual bool Is_Music (void) const = 0;
  101. virtual void Set_Music (bool is_music) = 0;
  102. virtual bool Is_3D (void) const = 0;
  103. virtual void Set_3D (bool is_3d) = 0;
  104. virtual float Get_Priority (void) const = 0;
  105. virtual void Set_Priority (float priority) = 0;
  106. virtual void Set_Max_Vol_Radius (float radius = 0) = 0;
  107. virtual float Get_Max_Vol_Radius (void) const = 0;
  108. virtual void Set_DropOff_Radius (float radius = 1) = 0;
  109. virtual float Get_DropOff_Radius (void) const = 0;
  110. virtual void Set_Filename (LPCTSTR filename) = 0;
  111. virtual LPCTSTR Get_Filename (void) const = 0;
  112. };
  113. #endif //__NODE_SETTINGS_INTERFACE_H