-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start mapping out PathFind related classes
- Loading branch information
Showing
8 changed files
with
121 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,6 +215,7 @@ | |
cflags_dolphin = [ | ||
*cflags_base, | ||
"-multibyte", | ||
"-fp_contract off", | ||
] | ||
|
||
# Metrowerks library flags | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef _TSEGIDMAPVARIABLESIZE | ||
#define _TSEGIDMAPVARIABLESIZE | ||
|
||
#include <rstl/reserved_vector.hpp> | ||
#include <rstl/pair.hpp> | ||
|
||
template < typename T > | ||
struct TSegIdMapVariableSize { | ||
|
||
private: | ||
rstl::reserved_vector< rstl::pair< signed char, signed char >, 100 > x4_links; | ||
}; | ||
|
||
#endif // _TSEGIDMAPVARIABLESIZE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#ifndef _CPFBITSET | ||
#define _CPFBITSET | ||
|
||
class CPFBitSet { | ||
public: | ||
void Clear(); | ||
void Add(int bit); | ||
bool Test(int bit); | ||
void Rmv(int bit); | ||
|
||
private: | ||
int mBits[16]; | ||
}; | ||
|
||
#endif // _CPFBITSET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef _CPATHFINDAREA | ||
#define _CPATHFINDAREA | ||
|
||
class CPFArea { | ||
|
||
}; | ||
|
||
#endif // _CPATHFINDAREA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#ifndef _CPATHFINDREGION | ||
#define _CPATHFINDREGION | ||
|
||
#include <Kyoto/Math/CVector3f.hpp> | ||
#include <Kyoto/Math/CAABox.hpp> | ||
|
||
class CPFRegion; | ||
class CPFRegionData { | ||
CPFRegionData(); | ||
|
||
void SetOpenLess(CPFRegion* region); | ||
CPFRegion* GetOpenLess(); | ||
|
||
void SetOpenMore(CPFRegion* region); | ||
CPFRegion* GetOpenMore(); | ||
|
||
float GetCost(); | ||
|
||
void* GetParent(); | ||
void Setup(CPFRegion* region, float cost); | ||
void Setup(CPFRegion* region, float, float); | ||
void GetG(); | ||
|
||
void SetBestPoint(const CVector3f& point); | ||
const CVector3f& GetBestPoint() const; | ||
|
||
void SetCookie(int cookie); | ||
int GetCookie() const; | ||
|
||
private: | ||
float x0_bestPointDistSq; | ||
CVector3f x4_bestPoint; | ||
int x10_cookie; | ||
float x14_cost; | ||
float x18_g; | ||
float x1c_h; | ||
CPFRegion* x20_parent; | ||
CPFRegion* x24_openLess; | ||
CPFRegion* x28_openMore; | ||
int x2c_parentLink; | ||
}; | ||
|
||
class CPFArea; | ||
class CPFNode; | ||
class CPFLink; | ||
class CPFRegion { | ||
CPFRegion(); | ||
void Fixup(CPFArea& area, int& numNodes); | ||
|
||
private: | ||
uint x0_numNodes; | ||
CPFNode* x4_startNode; | ||
uint x8_numLinks; | ||
CPFLink* xc_startLink; | ||
uint x10_flags; | ||
float x14_height; | ||
CVector3f x18_normal; | ||
uint x24_regionIdx; | ||
CVector3f x28_centroid; | ||
CAABox x34_bounds; | ||
CPFRegionData* x4c_data; | ||
}; | ||
|
||
#endif // _CPATHFINDREGION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef _CPATHFINDSEARCH | ||
#define _CPATHFINDSEARCH | ||
|
||
class CPFOpenList { | ||
|
||
}; | ||
|
||
class CPathFindSearch { | ||
|
||
}; | ||
#endif // _CPATHFINDSEARCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters