mirror of
https://github.com/whoahq/whoa.git
synced 2026-03-18 05:31:07 +03:00
Compare commits
3 Commits
7082e8db17
...
abf9eb3b05
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
abf9eb3b05 | ||
|
|
00d340c242 | ||
|
|
d3d4fa884f |
@ -1 +1 @@
|
||||
Subproject commit 489f2149b74b2ca8302ec1cbcec9c6250057f7a1
|
||||
Subproject commit c6ee931690f71362ab76602fb6f34a6cf23d12b8
|
||||
@ -111,6 +111,10 @@ C3Vector CGObject_C::GetPosition() const {
|
||||
return { 0.0f, 0.0f, 0.0f };
|
||||
}
|
||||
|
||||
float CGObject_C::GetRawFacing() const {
|
||||
return this->GetFacing();
|
||||
}
|
||||
|
||||
WOWGUID CGObject_C::GetTransportGUID() const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -39,6 +39,7 @@ class CGObject_C : public CGObject, public TSHashObject<CGObject_C, CHashKeyGUID
|
||||
virtual C3Vector GetPosition() const;
|
||||
// TODO
|
||||
virtual float GetFacing() const;
|
||||
virtual float GetRawFacing() const;
|
||||
// TODO
|
||||
virtual WOWGUID GetTransportGUID() const;
|
||||
// TODO
|
||||
|
||||
@ -42,6 +42,10 @@ C3Vector CGUnit::GetPosition() const {
|
||||
return this->m_move->GetPosition();
|
||||
}
|
||||
|
||||
float CGUnit::GetRawFacing() const {
|
||||
return this->m_move->GetRawFacing();
|
||||
}
|
||||
|
||||
CGUnitData* CGUnit::Unit() const {
|
||||
return this->m_unit;
|
||||
}
|
||||
|
||||
@ -92,6 +92,7 @@ class CGUnit {
|
||||
float GetFacing() const;
|
||||
int32_t GetNativeDisplayID() const;
|
||||
C3Vector GetPosition() const;
|
||||
float GetRawFacing() const;
|
||||
|
||||
protected:
|
||||
// Protected member variables
|
||||
|
||||
@ -1,10 +1,11 @@
|
||||
#include "object/client/CGUnit_C.hpp"
|
||||
#include "component/CCharacterComponent.hpp"
|
||||
#include "db/Db.hpp"
|
||||
#include "model/Model2.hpp"
|
||||
#include "object/client/ObjMgr.hpp"
|
||||
#include "db/Db.hpp"
|
||||
#include "ui/Game.hpp"
|
||||
#include <storm/Error.hpp>
|
||||
#include <tempest/Math.hpp>
|
||||
|
||||
WOWGUID CGUnit_C::s_activeMover;
|
||||
|
||||
@ -183,6 +184,10 @@ C3Vector CGUnit_C::GetPosition() const {
|
||||
return this->CGUnit::GetPosition();
|
||||
}
|
||||
|
||||
float CGUnit_C::GetRawFacing() const {
|
||||
return this->CGUnit::GetRawFacing();
|
||||
}
|
||||
|
||||
float CGUnit_C::GetRawSmoothFacing() const {
|
||||
return this->m_smoothFacing;
|
||||
}
|
||||
@ -208,6 +213,10 @@ void CGUnit_C::PostInit(uint32_t time, const CClientObjCreate& init, bool a4) {
|
||||
}
|
||||
|
||||
// TODO
|
||||
|
||||
this->m_smoothFacing = CMath::normalizeangle0to2pi(this->GetRawFacing());
|
||||
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGUnit_C::PostMovementUpdate(const CClientMoveUpdate& move, int32_t activeMover) {
|
||||
|
||||
@ -31,6 +31,7 @@ class CGUnit_C : public CGObject_C, public CGUnit {
|
||||
virtual C3Vector GetPosition() const;
|
||||
// TODO
|
||||
virtual float GetFacing() const;
|
||||
virtual float GetRawFacing() const;
|
||||
// TODO
|
||||
virtual WOWGUID GetTransportGUID() const;
|
||||
// TODO
|
||||
|
||||
@ -33,6 +33,10 @@ C3Vector CPassenger::GetPosition(const C3Vector& position) const {
|
||||
return position;
|
||||
}
|
||||
|
||||
float CPassenger::GetRawFacing() const {
|
||||
return this->m_facing;
|
||||
}
|
||||
|
||||
WOWGUID CPassenger::GetTransportGUID() const {
|
||||
return this->m_transportGUID;
|
||||
}
|
||||
|
||||
@ -16,6 +16,7 @@ class CPassenger {
|
||||
float GetFacing(float facing) const;
|
||||
C3Vector GetPosition() const;
|
||||
C3Vector GetPosition(const C3Vector& position) const;
|
||||
float GetRawFacing() const;
|
||||
WOWGUID GetTransportGUID() const;
|
||||
|
||||
protected:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user