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.
572 B · 34 lines
C
at master
12345678910111213141516171819202122232425262728293031323334#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; double speedModifier; bool _hasWanted;
public: MoveControl(Mob *mob);
bool hasWanted(); double getSpeedModifier(); void setWantedPosition(double x, double y, double z, double speedModifier); void setSpeed(float speed); virtual void tick();
private: float rotlerp(float a, float b, float max);};