2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-10 08:27:43 +00:00

Implement most of CTargetingManager

This commit is contained in:
Jack Andersen
2017-10-28 20:21:52 -10:00
parent bb10aa9844
commit 6eff4f2e01
13 changed files with 943 additions and 122 deletions

View File

@@ -1,13 +1,30 @@
#ifndef __URDE_CORBITPOINTMARKER_HPP__
#define __URDE_CORBITPOINTMARKER_HPP__
namespace
#include "RetroTypes.hpp"
#include "CToken.hpp"
#include "Graphics/CModel.hpp"
namespace urde
{
class CStateManager;
class COrbitPointMarker
{
float x0_zOffset;
bool x4_camRelZPos = true;
float x8_lagAzimuth = 0.f;
float xc_azimuth = 0.f;
zeus::CVector3f x10_lagTargetPos;
bool x1c_lastFreeOrbit = false;
float x20_interpTimer = 0.f;
float x24_curTime = 0.f;
TLockedToken<CModel> x28_orbitPointModel;
void ResetInterpolationTimer(float time) { x20_interpTimer = time; }
public:
COrbitPointMarker();
bool CheckLoadComplete();
void Update(float dt, const CStateManager& mgr);
void Draw(const CStateManager& mgr) const;
};
}
#endif // __URDE_CORBITPOINTMARKER_HPP__