mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-17 18:38:13 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -4,32 +4,31 @@
|
||||
|
||||
class Mob;
|
||||
|
||||
class MoveControl : public Control
|
||||
{
|
||||
class MoveControl : public Control {
|
||||
public:
|
||||
static const float MIN_SPEED;
|
||||
static const float MIN_SPEED_SQR;
|
||||
static const float MIN_SPEED;
|
||||
static const float MIN_SPEED_SQR;
|
||||
|
||||
private:
|
||||
static const int MAX_TURN = 30;
|
||||
static const int MAX_TURN = 30;
|
||||
|
||||
Mob *mob;
|
||||
double wantedX;
|
||||
double wantedY;
|
||||
double wantedZ;
|
||||
float speed;
|
||||
bool _hasWanted;
|
||||
Mob* mob;
|
||||
double wantedX;
|
||||
double wantedY;
|
||||
double wantedZ;
|
||||
float speed;
|
||||
bool _hasWanted;
|
||||
|
||||
public:
|
||||
MoveControl(Mob *mob);
|
||||
virtual ~MoveControl(){}
|
||||
MoveControl(Mob* mob);
|
||||
virtual ~MoveControl() {}
|
||||
|
||||
bool hasWanted();
|
||||
float getSpeed();
|
||||
void setWantedPosition(double x, double y, double z, float speed);
|
||||
void setSpeed(float speed);
|
||||
virtual void tick();
|
||||
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);
|
||||
float rotlerp(float a, float b, float max);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user