mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftConsoles-141217.git
synced 2026-10-22 13:22:18 +01:00
Initial commit
This commit is contained in:
commit
2dfcaaa842
5375 files changed
+978475
No files matched your search
@@ -0,0 +1,34 @@
|
||||
#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);
|
||||
};
|
||||
Reference in new issue
Block a user