mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-04 19:36:43 +03:00
40 lines
704 B
C++
40 lines
704 B
C++
/********************************************************************
|
|
Minecraft: Pocket Edition - Decompilation Project
|
|
Copyright (C) 2023 iProgramInCpp
|
|
|
|
The following code is licensed under the BSD 1 clause license.
|
|
SPDX-License-Identifier: BSD-1-Clause
|
|
********************************************************************/
|
|
#pragma once
|
|
|
|
#include "Node.hpp"
|
|
|
|
class Path
|
|
{
|
|
public:
|
|
Path();
|
|
~Path();
|
|
|
|
void setNodes(Node** pNodes, int nodeCount);
|
|
|
|
void clear()
|
|
{
|
|
if (m_pNodes)
|
|
{
|
|
for (int i = 0; i < m_numNodes; i++)
|
|
delete m_pNodes[i];
|
|
|
|
delete[] m_pNodes;
|
|
}
|
|
|
|
m_pNodes = nullptr;
|
|
m_numNodes = 0;
|
|
field_8 = 0;
|
|
}
|
|
|
|
private:
|
|
int m_numNodes;
|
|
Node** m_pNodes;
|
|
int field_8;
|
|
};
|