- Fix CMap::GetChunkFacets: impassable test uses the chunk MapObjFlag (MAPOBJ_FLAG_IMPASSABLE at +0xC) like 12340, not MCNK header flag 0x40 (vertex colours). Most chunks got 32000-high wall facets, so the player could jump but not walk. - Ship paths: GetPosition, path time, accel/decel distance, roll/pitch. - Transports: Transport::UpdateMovement, CollideWithTransport, owner matrix. - Map objects: IsAllLoaded, footprints, TriData query chain (QueryTris, GetTrisTerrain/Chunk, GetTriSubchunk, QueryTrisMapObjDefs), QueryIntersectingModels. - Water ripples, projected-texture shadow drawing (shadow.cpp). - World states, LFG best random dungeon, quest POI, ComSat session lookup, blood record, virtual items, guild roster query. - Logout path: tradeskill close, LCD, DBCache_ClearPending, chat/macro/ saved-variable/account-data saving, tracked quests/achievements/ tutorials, UnloadAddOns, SaveAddOnEnableState, ~CGWorldFrame, SmartScreenRectShutdown. - Fixes: TriData batch heights stored as float* (was truncating uint32 on x64), TimeInRange is a ShipPath member, ComSat lookup takes the session type, roll/pitch names swapped in MapObjTransport::UpdateMovement, removed windows.h from Object/Passenger.h. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
#ifndef WOW_SOURCE_OBJECT_CREATURESTATS_H
|
|
#define WOW_SOURCE_OBJECT_CREATURESTATS_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Storm/H/storm.h"
|
|
|
|
class CDataStore;
|
|
|
|
class CreatureStats {
|
|
public:
|
|
/* 0004 */ char* m_subName;
|
|
/* 0008 */ char* m_iconName;
|
|
/* 000C */ uint32_t m_typeFlags;
|
|
/* 0010 */ uint32_t m_type;
|
|
/* 0014 */ uint32_t m_family;
|
|
/* 0018 */ uint32_t m_rank;
|
|
/* 001C */ uint32_t m_killCredit [2];
|
|
/* 0024 */ uint32_t m_displayId [4];
|
|
/* 0034 */ float m_hpModifier;
|
|
/* 0038 */ float m_mpModifier;
|
|
/* 003C */ bool m_racialLeader;
|
|
/* 0040 */ uint32_t m_questItem [6];
|
|
/* 0058 */ uint32_t m_movementId;
|
|
/* 005C */ char* m_name [4];
|
|
|
|
virtual ~CreatureStats();
|
|
|
|
const char* GetName(int32_t index) const;
|
|
void Pack(CDataStore* msg) const;
|
|
void Unpack(CDataStore* msg);
|
|
};
|
|
|
|
// INLINED
|
|
inline CreatureStats::~CreatureStats() {
|
|
for (uint32_t i = 0; i < 4; i++) {
|
|
if (this->m_name[i]) {
|
|
SMemFree(this->m_name[i], __FILE__, __LINE__, 0);
|
|
}
|
|
}
|
|
|
|
if (this->m_subName) {
|
|
SMemFree(this->m_subName, __FILE__, __LINE__, 0);
|
|
}
|
|
|
|
if (this->m_iconName) {
|
|
SMemFree(this->m_iconName, __FILE__, __LINE__, 0);
|
|
}
|
|
}
|
|
|
|
#endif
|