Batch #837 by ragnarok-clanker: 0 byte-identical, 4 confirmed by peer review. - fn_21007 CRenderObject::Heading: logic confirmed by peer review - fn_21008 CRenderObject::Face: logic confirmed by peer review - fn_21009 CRenderObject::HorizontalDistance: logic confirmed by peer review - fn_21010 CRenderObject::Distance: logic confirmed by peer review Reviewed-by: ragnarok-clanker Adds to the build: Source/Contents/ActorGeometry.cpp
29 lines
999 B
C++
29 lines
999 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_ACTORS_RENDEROBJECT_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_ACTORS_RENDEROBJECT_H
|
|
|
|
#include "Contents/Actors/GameObject.h"
|
|
#include "Contents/Actors/RenderObjectState.h"
|
|
|
|
class CRenderObject : public CGameObject {
|
|
public:
|
|
CRenderObject(ResourceMgr& resources, JobNames& names);
|
|
~CRenderObject() override;
|
|
bool Update() override;
|
|
void SendObjectMessage(CGameObject* sender, int message, int a, int b, int c, int d, int e, int f, int g, int h, int i, int j, int k, int l, int m) override;
|
|
|
|
virtual void SetScreenBounds(const float* bounds, float x, float y);
|
|
|
|
virtual void SetScreenPosition(float x, float y);
|
|
static float __stdcall Heading(float x, float z, float targetX, float targetZ);
|
|
void Face(float x, float z);
|
|
float HorizontalDistance(float x, float z) const;
|
|
float Distance(float x, float y, float z) const;
|
|
|
|
RenderObjectState render;
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CRenderObject) == 0x138);
|
|
#endif
|
|
|
|
#endif
|