W3DOverlordAircraftDraw.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. ** Command & Conquer Generals Zero Hour(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. // //
  20. // (c) 2001-2003 Electronic Arts Inc. //
  21. // //
  22. ////////////////////////////////////////////////////////////////////////////////
  23. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  24. //
  25. // FILE: W3DOverlordAircraftDraw.h
  26. // Author: Mark Lorenzen, April 2003
  27. // Desc: Units that recieve portable structure upgrades (like the Overlord Tank) have a super specific special need.
  28. // He needs his rider to draw explicitly after him,
  29. // and he needs direct access to get that rider when everyone else can't see it because of the OverlordContain.
  30. // In the case of aircraft (Helix, SpectreGunship, etc.) we need this draw module which mimics the OverlordTankDraw
  31. // but does not draw treads, trackmarks, turrets, etc. Whee!
  32. //
  33. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  34. #pragma once
  35. #ifndef _W3D_OVERLORD_AIRCRAFT_DRAW_H_
  36. #define _W3D_OVERLORD_AIRCRAFT_DRAW_H_
  37. // INCLUDES ///////////////////////////////////////////////////////////////////////////////////////
  38. #include "W3DDevice/GameClient/Module/W3DModelDraw.h"
  39. //-------------------------------------------------------------------------------------------------
  40. class W3DOverlordAircraftDrawModuleData : public W3DModelDrawModuleData
  41. {
  42. public:
  43. W3DOverlordAircraftDrawModuleData();
  44. ~W3DOverlordAircraftDrawModuleData();
  45. static void buildFieldParse(MultiIniFieldParse& p);
  46. };
  47. //-------------------------------------------------------------------------------------------------
  48. class W3DOverlordAircraftDraw : public W3DModelDraw
  49. {
  50. MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE( W3DOverlordAircraftDraw, "W3DOverlordAircraftDraw" )
  51. MAKE_STANDARD_MODULE_MACRO_WITH_MODULE_DATA( W3DOverlordAircraftDraw, W3DOverlordAircraftDrawModuleData )
  52. public:
  53. W3DOverlordAircraftDraw( Thing *thing, const ModuleData* moduleData );
  54. // virtual destructor prototype provided by memory pool declaration
  55. virtual void setHidden(Bool h);
  56. virtual void doDrawModule(const Matrix3D* transformMtx);
  57. protected:
  58. };
  59. #endif