first commit

This commit is contained in:
murdle
2026-03-01 02:38:58 +02:00
commit 19250b9db4
19111 changed files with 4358159 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
#pragma once
#include "Control.h"
class Mob;
class LookControl : public Control
{
private:
Mob *mob;
float yMax, xMax;
bool hasWanted;
double wantedX, wantedY, wantedZ;
public:
LookControl(Mob *mob);
void setLookAt(shared_ptr<Entity> target, float yMax, float xMax);
void setLookAt(double x, double y, double z, float yMax, float xMax);
virtual void tick();
private:
float rotlerp(float a, float b, float max);
public:
bool isHasWanted();
float getYMax();
float getXMax();
double getWantedX();
double getWantedY();
double getWantedZ();
};