the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "Control.h"
4
5class Mob;
6
7class MoveControl : public Control
8{
9public:
10 static const float MIN_SPEED;
11 static const float MIN_SPEED_SQR;
12
13private:
14 static const int MAX_TURN = 30;
15
16 Mob *mob;
17 double wantedX;
18 double wantedY;
19 double wantedZ;
20 double speedModifier;
21 bool _hasWanted;
22
23public:
24 MoveControl(Mob *mob);
25
26 bool hasWanted();
27 double getSpeedModifier();
28 void setWantedPosition(double x, double y, double z, double speedModifier);
29 void setSpeed(float speed);
30 virtual void tick();
31
32private:
33 float rotlerp(float a, float b, float max);
34};