WarheadTypeClass

From ModEnc

Jump to: navigation, search

The WarheadTypeClass represents Warheads.

Contents

[edit] Class specifications

Property Value
General:
DerivationAbstractClassAbstractTypeClass → WarheadTypeClass
GUID{A8C54DA4-0F7B-11D2-8172-006008055BB5}
VT address (YR 1.001)0x7F6B30
Size of member data (YR 1.001)0x1CC bytes
AbstractClass derivative:
AbstractDerivationID0x32


[edit] Member variables

Offset Type Name Description
AbstractClass:
0x0ptrVirtualTablePointer to the class's Virtual Table
0x4ptrIRTTITypeInfo VTablePointer to an extended VTable (not sure what exactly it does)
0x8ptrINoticeSink VTablePointer to an extended VTable (not sure what exactly it does)
0xCptrINoticeSource VTablePointer to an extended VTable (not sure what exactly it does)
0x10DWORDunknown
0x14DWORDDerivationFlagsBit 0: set if the instance is or derives from a TechnoClass
Bit 1: set if the instance is or derives from a ObjectClass
Bit 2: set if the instance is or derives from a FootClass
0x18DWORDunknown
0x1CDWORDunknown
0x20boolDirtyWas the object changed since it was last saved?
0x21BYTEunused
0x22WORDunused
AbstractTypeClass:
0x24char[0x18]IDThe INI name of this type (for example: SMCV).
0x3CBYTEreservedZero-termination of the ID.
0x3Dchar[0x20]UINameStringtable reference given by the UIName tag.
0x5DBYTEreservedZero-termination of the UIName.
0x5EWORDunused
0x60wchar*UINamePointer to the UIName unicode string inside the stringtable.
0x64char[0x31]NameName given by the Name tag.
0x95BYTEreservedZero-termination of the Name.
0x96WORDunused
WarheadTypeClass:
0x98 double Deform
0xA0 double Verses - None
0xA8 double Verses - Flak
0xB0 double Verses - Plate
0xB8 double Verses - Light
0xC0 double Verses - Medium
0xC8 double Verses - Heavy
0xD0 double Verses - Wood
0xD8 double Verses - Steel
0xE0 double Verses - Concrete
0xE8 double Verses - Special_1
0xF0 double Verses - Special_2
0xF8 double ProneDamage
0x100 int DeformTreshold
0x104 vector<AnimTypeClass*> AnimList
0x120 int InfDeath
0x124 float CellSpread
0x128 float CellInset
0x12C float PercentAtMax
0x130 bool CausesDelayKill
0x134 int DelayKillFrames
0x138 float DelayKillAtMax
0x13C float CombatLightSize
0x140 ParticleTypeClass* Particle
0x144 bool Wall
0x145 bool WallAbsoluteDestroyer
0x146 bool PenetratesBunker
0x147 bool Wood
0x148 bool Tiberium
0x149 bool unknown This will be set to true if either Versus Medium or Verses Wood is greater than zero.
0x14A bool Sparky
0x14B bool Sonic
0x14C bool Fire
0x14D bool Conventional
0x14E bool Rocker
0x14F bool DirectRocker
0x150 bool Bright
0x151 bool CLDisableRed
0x152 bool CLDisableGreen
0x153 bool CLDisableBlue
0x154 bool EMEffect
0x155 bool MindControl
0x156 bool Poison
0x157 bool IvanBomb
0x158 bool ElectricAssault
0x159 bool Parasite
0x15A bool Temporal
0x15B bool IsLocomotor
0x15C CLSID Locomotor
0x16C bool Airstrike
0x16D bool Psychedelic
0x16E bool BombDisarm
0x170 int Paralyzes
0x174 bool Culling
0x175 bool MakesDisguise
0x176 bool NukeMaker
0x177 bool Radiation
0x178 bool PsychicDamage
0x179 bool AffectsAllies
0x17A bool Bullets
0x17B bool Veinhole
0x17C int ShakeXlo
0x180 int ShakeXhi
0x184 int ShakeYlo
0x188 int ShakeYhi
0x18C vector<VoxelAnimTypeClass*> DebrisTypes
0x1A8 vector<int> DebrisMaximums
0x1C4 int MaxDebris
0x1C8 int MinDebris
AbstractClass - Member Variables
AbstractTypeClass - Member Variables
WarheadTypeClass - Member Variables

[edit] Virtual Table

Offset Return Type Name Arguments Description
IUnknown:
0x0HRESULTQueryInterfaceREFIID iid
void ** ppvObject
MSDN:
"Returns a pointer to a specified interface on an object to which a client currently holds an interface pointer."
0x4ULONGAddRefnoneMSDN:
"[...] increments the reference count for an interface on an object. It should be called for every new copy of a pointer to an interface on a given object."
0x8ULONGReleasenoneMSDN:
"Decrements the reference count for the calling interface on a object. If the reference count on the object falls to 0, the object is freed from memory."
IPersist:
0xCHRESULTGetClassIDCLSID * pClassIDMSDN:
"Retrieves the class identifier (CLSID) of an object. The CLSID is a unique value that identifies the code that can manipulate the persistent data."
IPersistStream:
0x10HRESULTIsDirtynoneMSDN:
"Checks the object for changes since it was last saved."
0x14HRESULTLoadIStream* stream
AbstractClass* dst
MSDN:
"Initializes an object from the stream where it was previously saved."
0x18HRESULTSaveIStream* stream
AbstractClass* src
(3rd is unknown)
MSDN:
"Saves an object to the specified stream."
0x1CHRESULTGetMaxSizeULARGE_INTEGER * pcbSizeMSDN:
"Returns the size in bytes of the stream needed to save the object."
AbstractClass:
0x20none (DTOR)DestructornoneFrees memory and removes this instance from global arrays.
0x24unknownunknownunknown
0x28unknownunknownunknown
0x2CintGetAbstractDerivationIDnoneGets the AbstractDerivationID of this class.
Used to find out "what something is".
0x30intGetSizenoneGets the size of the member data.
0x34unsigned longGetCRCunknownCalculates a CRC sum of this instance.
0x38intGetOwningHouseIndexnoneGets the index of the House (player) who owns this object.
0x3CHouseClass*GetOwningHousenoneGets a pointer to the House (player) who owns this object.
0x40intGetArrayIndexnoneGets the index of this class instance in the global array.
This will return 0 for abstract classes.
0x44boolIsDeadnoneFinds out whether this instance is dead.
This is only used for "living" objects with a health.
0x48voidGet3DCoordsint* dst_xyzLoads 3D coordinates into dst_xyz.
0x4CvoidGet3DCoords_varint* dst_xyzLoads 3D coordinates into variables, then into dst_xyz.
This method is obsolete (use 0x48).
0x50unknownunknownunknown
0x54unknownunknownunknown
0x58unknownunknownunknown
0x5CvoidAdvanceFramenoneThis is an updating routine, called every frame.
AbstractTypeClass:
0x60unknownunknownunknown
0x64boolLoadFromINICCINIClass* iniInitializes the type based on the INI file section ID.
0x68boolSaveToINICCINIClass* iniSaves this type to an INI file.
AbstractClass - Virtual Table
AbstractTypeClass - Virtual Table

[edit] Member functions

Address (YR 1.001) Return Type Name Arguments Description
0x75CEC0ptr (CTOR)Constructorchar* IDCreates an instance and initializes it.
Personal tools