Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
561 B · 33 lines
C
at master
123456789101112131415161718192021222324252627282930313233#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();};