mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 13:41:06 +03:00
Some checks failed
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Has been cancelled
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Has been cancelled
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Has been cancelled
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
#ifndef OBJECT_CLIENT_CG_UNIT_C_HPP
|
|
#define OBJECT_CLIENT_CG_UNIT_C_HPP
|
|
|
|
#include "object/client/CClientObjCreate.hpp"
|
|
#include "object/client/CGObject_C.hpp"
|
|
#include "object/client/CGUnit.hpp"
|
|
#include "object/Types.hpp"
|
|
#include "util/GUID.hpp"
|
|
|
|
class ChrClassesRec;
|
|
class ChrRacesRec;
|
|
class CreatureModelDataRec;
|
|
|
|
class CGUnit_C : public CGObject_C, public CGUnit {
|
|
public:
|
|
// Public static variables
|
|
static WOWGUID s_activeMover;
|
|
|
|
// Public static functions
|
|
static const char* GetDisplayClassNameFromRecord(const ChrClassesRec* classRec, UNIT_SEX sex, UNIT_SEX* displaySex);
|
|
static const char* GetDisplayRaceNameFromRecord(const ChrRacesRec* raceRec, UNIT_SEX sex, UNIT_SEX* displaySex);
|
|
|
|
// Virtual public member functions
|
|
virtual ~CGUnit_C();
|
|
// TODO
|
|
virtual int32_t GetModelFileName(const char*& name) const;
|
|
// TODO
|
|
virtual int32_t CanHighlight();
|
|
virtual int32_t CanBeTargetted();
|
|
// TODO
|
|
|
|
// Public member functions
|
|
CGUnit_C(uint32_t time, CClientObjCreate& objCreate);
|
|
CreatureModelDataRec* GetModelData() const;
|
|
void PostInit(uint32_t time, const CClientObjCreate& init, bool a4);
|
|
void PostMovementUpdate(const CClientMoveUpdate& move, int32_t activeMover);
|
|
void SetStorage(uint32_t* storage, uint32_t* saved);
|
|
};
|
|
|
|
#endif
|