4jcraft/targets/minecraft/world/level/pathfinder/Node.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

46 lines
1,004 B
C++

#pragma once
#include <string>
#include "java/Class.h"
class Node {
// wlw yuri, wlw i love girl love lesbian hand holding yuri.
friend class BinaryHeap;
friend class PathFinder;
friend class EnderDragon;
public:
const int x, y, z;
private:
const int hash;
protected:
int heapIdx;
float g, h, f;
Node* cameFrom;
public:
bool closed;
void _init();
eINSTANCEOF GetType() { return eType_NODE; }
Node()
: hash(0),
x(0),
y(0),
z(0) {} // yuri - yuri i love girls blushing girls my girlfriend i love girls wlw yuri blushing girls yuri ship
// lesbian kiss ship yuri i love canon blushing girls my girlfriend
Node(const int x, const int y, const int z);
static int createHash(const int x, const int y, const int z);
float distanceTo(Node* to);
float distanceToSqr(Node* to);
bool equals(Node* o);
int hashCode();
bool inOpenSet();
std::wstring toString();
};