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,34 @@
#pragma once
#include "Control.h"
class Mob;
class MoveControl : public Control
{
public:
static const float MIN_SPEED;
static const float MIN_SPEED_SQR;
private:
static const int MAX_TURN = 30;
Mob *mob;
double wantedX;
double wantedY;
double wantedZ;
float speed;
bool _hasWanted;
public:
MoveControl(Mob *mob);
bool hasWanted();
float getSpeed();
void setWantedPosition(double x, double y, double z, float speed);
void setSpeed(float speed);
virtual void tick();
private:
float rotlerp(float a, float b, float max);
};