| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- /*
- ** Command & Conquer Generals(tm)
- ** Copyright 2025 Electronic Arts Inc.
- **
- ** This program is free software: you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation, either version 3 of the License, or
- ** (at your option) any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- ////////////////////////////////////////////////////////////////////////////////
- // //
- // (c) 2001-2003 Electronic Arts Inc. //
- // //
- ////////////////////////////////////////////////////////////////////////////////
- // FIEL: W3DOverlordTankDraw.h ////////////////////////////////////////////////////////////////////////////
- // Author: Graham Smallwood, October 2002
- // Desc: The Overlord has a super specific special need. He needs his rider to draw explicitly after him,
- // and he needs direct access to get that rider when everyone else can't see it because of the OverlordContain.
- ///////////////////////////////////////////////////////////////////////////////////////////////////
- #pragma once
- #ifndef _W3D_OVERLORD_TANK_DRAW_H_
- #define _W3D_OVERLORD_TANK_DRAW_H_
- // INCLUDES ///////////////////////////////////////////////////////////////////////////////////////
- #include "W3DDevice/GameClient/Module/W3DTankDraw.h"
- //-------------------------------------------------------------------------------------------------
- class W3DOverlordTankDrawModuleData : public W3DTankDrawModuleData
- {
- public:
- AsciiString m_treadDebrisNameLeft;
- AsciiString m_treadDebrisNameRight;
- Real m_treadAnimationRate; ///<amount of tread texture to scroll per sec. 1.0 == full width.
- Real m_treadPivotSpeedFraction; ///<fraction of locomotor speed below which we allow pivoting.
- Real m_treadDriveSpeedFraction; ///<fraction of locomotor speed below which treads stop animating.
- W3DOverlordTankDrawModuleData();
- ~W3DOverlordTankDrawModuleData();
- static void buildFieldParse(MultiIniFieldParse& p);
- };
- //-------------------------------------------------------------------------------------------------
- class W3DOverlordTankDraw : public W3DTankDraw
- {
- MEMORY_POOL_GLUE_WITH_USERLOOKUP_CREATE( W3DOverlordTankDraw, "W3DOverlordTankDraw" )
- MAKE_STANDARD_MODULE_MACRO_WITH_MODULE_DATA( W3DOverlordTankDraw, W3DOverlordTankDrawModuleData )
-
- public:
- W3DOverlordTankDraw( Thing *thing, const ModuleData* moduleData );
- // virtual destructor prototype provided by memory pool declaration
- virtual void setHidden(Bool h);
- virtual void doDrawModule(const Matrix3D* transformMtx);
- protected:
- };
- #endif
|