mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 16:22:32 +03:00
feat(object): set position and facing in CGUnit_C ctor
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
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
This commit is contained in:
10 files changed
+140
-2
No files matched your search
@@ -96,7 +96,11 @@ const char* CGUnit_C::GetDisplayRaceNameFromRecord(const ChrRacesRec* raceRec, U
|
||||
return raceRec->m_name;
|
||||
}
|
||||
|
||||
CGUnit_C::CGUnit_C(uint32_t time, CClientObjCreate& objCreate) : CGObject_C(time, objCreate) {
|
||||
CGUnit_C::CGUnit_C(uint32_t time, CClientObjCreate& objCreate)
|
||||
: CGObject_C(time, objCreate)
|
||||
, m_movement(&this->m_localMovement)
|
||||
, m_localMovement(objCreate.move.status.position28, objCreate.move.status.facing34, this->GetGUID(), this)
|
||||
{
|
||||
// TODO
|
||||
|
||||
this->RefreshDataPointers();
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "object/client/CClientObjCreate.hpp"
|
||||
#include "object/client/CGObject_C.hpp"
|
||||
#include "object/client/CGUnit.hpp"
|
||||
#include "object/client/CMovementData_C.hpp"
|
||||
#include "object/Types.hpp"
|
||||
#include "util/GUID.hpp"
|
||||
|
||||
@@ -48,6 +49,9 @@ class CGUnit_C : public CGObject_C, public CGUnit {
|
||||
|
||||
private:
|
||||
// Private member variables
|
||||
CMovementData_C* m_movement;
|
||||
// TODO
|
||||
CMovementData_C m_localMovement;
|
||||
// TODO
|
||||
CreatureDisplayInfoRec* m_displayInfo;
|
||||
CreatureDisplayInfoExtraRec* m_displayInfoExtra;
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
#include "object/client/CMovementData_C.hpp"
|
||||
|
||||
CMovementData_C::CMovementData_C(const C3Vector& position, float facing, const WOWGUID& guid, CGUnit_C* unit)
|
||||
: CMovementShared(0, position, facing, guid)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
#ifndef OBJECT_CLIENT_C_MOVEMENT_DATA_C_HPP
|
||||
#define OBJECT_CLIENT_C_MOVEMENT_DATA_C_HPP
|
||||
|
||||
#include "object/movement/CMovementShared.hpp"
|
||||
|
||||
class CGUnit_C;
|
||||
|
||||
class CMovementData_C : public CMovementShared {
|
||||
public:
|
||||
// Public member functions
|
||||
CMovementData_C(const C3Vector& position, float facing, const WOWGUID& guid, CGUnit_C* unit);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef OBJECT_CLIENT_C_MOVEMENT_C_HPP
|
||||
#define OBJECT_CLIENT_C_MOVEMENT_C_HPP
|
||||
|
||||
#include "object/client/CMovementData_C.hpp"
|
||||
#include "util/GUID.hpp"
|
||||
#include <tempest/Vector.hpp>
|
||||
|
||||
class CMovement_C : public CMovementData_C {
|
||||
public:
|
||||
// Public member functions
|
||||
CMovement_C(const C3Vector& position, float facing, const WOWGUID& guid, CGUnit_C* unit)
|
||||
: CMovementData_C(position, facing, guid, unit) {};
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user