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 LookControl : public Control
8{
9private:
10 Mob *mob;
11 float yMax, xMax;
12 bool hasWanted;
13
14 double wantedX, wantedY, wantedZ;
15
16public:
17 LookControl(Mob *mob);
18
19 void setLookAt(shared_ptr<Entity> target, float yMax, float xMax);
20 void setLookAt(double x, double y, double z, float yMax, float xMax);
21 virtual void tick();
22
23private:
24 float rotlerp(float a, float b, float max);
25
26public:
27 bool isHasWanted();
28 float getYMax();
29 float getXMax();
30 double getWantedX();
31 double getWantedY();
32 double getWantedZ();
33};