hit a wall

This commit is contained in:
Leah Anderson 2026-03-03 09:29:08 -07:00
parent 88c850bc42
commit 5a3768ce36
12 changed files with 22 additions and 20 deletions

View file

@ -1,7 +1,7 @@
#include "stdafx.h"
#include "../../Minecraft.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
#include "AreaConstraint.h"
#include "../../../Minecraft.World/AABB.h"
@ -49,4 +49,4 @@ bool AreaConstraint::canMoveToPosition(double xo, double yo, double zo, double x
double currDist = origPos->distanceTo(movementArea);
double targetDist = targetPos->distanceTo(movementArea);
return targetDist < currDist;
}
}

View file

@ -1,7 +1,7 @@
#include "stdafx.h"
#include "../../Minecraft.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
#include "AreaHint.h"
#include "../../../Minecraft.World/AABB.h"
#include "Tutorial.h"
@ -46,4 +46,4 @@ int AreaHint::tick()
{
return -1;
}
}
}

View file

@ -2,7 +2,7 @@
#include "Tutorial.h"
#include "../../Minecraft.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
#include "../../../Minecraft.World/net.minecraft.world.level.h"
#include "ChangeStateConstraint.h"
#include "../../../Minecraft.World/AABB.h"
@ -133,4 +133,4 @@ void ChangeStateConstraint::tick(int iPad)
}
}
}
}
}

View file

@ -2,7 +2,7 @@
#include <string>
#include <unordered_map>
#include "../../Minecraft.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
#include "Tutorial.h"
#include "TutorialConstraints.h"
#include "ChoiceTask.h"

View file

@ -2,7 +2,7 @@
#include <string>
#include <unordered_map>
#include "../../Minecraft.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
#include "Tutorial.h"
#include "TutorialConstraints.h"
#include "ControllerTask.h"
@ -120,4 +120,4 @@ void ControllerTask::setAsCurrentTask(bool active /*= true*/)
{
TutorialTask::setAsCurrentTask(active);
enableConstraints(!active);
}
}

View file

@ -2,7 +2,7 @@
#include <string>
#include <unordered_map>
#include "../../Minecraft.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
#include "Tutorial.h"
#include "TutorialConstraints.h"
#include "InfoTask.h"

View file

@ -5,7 +5,7 @@
#include "Tutorial.h"
#include "TutorialHint.h"
#include "../../Minecraft.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
TutorialHint::TutorialHint(eTutorial_Hint id, Tutorial *tutorial, int descriptionId, eHintType type, bool allowFade /*= true*/)
: m_id( id ), m_tutorial(tutorial), m_descriptionId( descriptionId ), m_type( type ), m_counter( 0 ),
@ -125,4 +125,4 @@ int TutorialHint::tick()
break;
}
return returnVal;
}
}

View file

@ -1,7 +1,7 @@
#include "stdafx.h"
#include <memory>
#include "../../Minecraft.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
#include "../../MultiPlayerLevel.h"
#include "../../../Minecraft.World/Inventory.h"
#include "../../../Minecraft.World/net.minecraft.world.item.h"
@ -121,4 +121,4 @@ void TutorialMode::attack(shared_ptr<Player> player, shared_ptr<Entity> entity)
bool TutorialMode::isInputAllowed(int mapping)
{
return tutorial->m_allTutorialsComplete || tutorial->isInputAllowed( mapping );
}
}

View file

@ -6,13 +6,15 @@
#include "../../../Minecraft.World/net.minecraft.world.item.h"
#include "../../../Minecraft.World/net.minecraft.world.item.crafting.h"
#include "../../../Minecraft.World/net.minecraft.world.level.tile.entity.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
#include "../../Minecraft.h"
#ifdef __ORBIS__
#include <pad.h>
#endif
#ifdef __linux__
#include <math.h>
#endif
IUIScene_AbstractContainerMenu::IUIScene_AbstractContainerMenu()
{
m_menu = NULL;

View file

@ -2,7 +2,7 @@
#include "IUIScene_CreativeMenu.h"
#include "../../Minecraft.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
#include "../../../Minecraft.World/net.minecraft.world.inventory.h"
#include "../../../Minecraft.World/net.minecraft.world.level.tile.h"
#include "../../../Minecraft.World/net.minecraft.world.level.tile.entity.h"

View file

@ -1,7 +1,7 @@
#include "stdafx.h"
#include "../../../Minecraft.World/net.minecraft.world.inventory.h"
#include "../../Minecraft.h"
#include "../../MultiplayerLocalPlayer.h"
#include "../../MultiPlayerLocalPlayer.h"
#include "IUIScene_EnchantingMenu.h"
IUIScene_AbstractContainerMenu::ESceneSection IUIScene_EnchantingMenu::GetSectionAndSlotInDirection( IUIScene_AbstractContainerMenu::ESceneSection eSection, ETapState eTapDirection, int *piTargetX, int *piTargetY )
@ -182,4 +182,4 @@ bool IUIScene_EnchantingMenu::IsSectionSlotList( ESceneSection eSection )
EnchantmentMenu *IUIScene_EnchantingMenu::getMenu()
{
return (EnchantmentMenu *)m_menu;
}
}

View file

@ -697,7 +697,7 @@ HANDLE CreateEvent(int manual_reset, int initial_state) {
return (HANDLE)ev;
}
typedef bool rrbool;
//typedef bool rrbool;
#define S_OK 0