MinecraftConsoles/Minecraft.World/ControlledByPlayerGoal.h
Brayden M df180fabd2 refactor: Fix include paths for compatibility
MSVC allows backslashes and case-insensitive include paths, which causes
build failures on other compilers. This commit:
- Converts all include backslashes to forward slashes.
- Fixes capitalization mismatches to match the actual filesystem.
2026-03-14 00:42:04 -05:00

37 lines
701 B
C++

#pragma once
#include "Goal.h"
#include "../Minecraft.World/SharedConstants.h"
class Mob;
class ControlledByPlayerGoal : public Goal
{
private:
static const int MIN_BOOST_TIME = SharedConstants::TICKS_PER_SECOND * 7;
static const int MAX_BOOST_TIME = SharedConstants::TICKS_PER_SECOND * 35;
Mob *mob; // Owner of this goal
float maxSpeed;
float walkSpeed;
float speed;
bool boosting;
int boostTime;
int boostTimeTotal;
public:
ControlledByPlayerGoal(Mob *mob, float maxSpeed, float walkSpeed); // 4J Added walkSpeed param
void start();
void stop();
bool canUse();
void tick();
private:
bool isNoJumpTile(int tile);
public:
bool isBoosting();
void boost();
bool canBoost();
};