nav: various fixes to movement code

refactor: move some things into new game state class
This commit is contained in:
jeefo 2025-10-08 20:12:46 +03:00
commit 7b378ba3fa
No known key found for this signature in database
GPG key ID: D696786B81B667C8
29 changed files with 805 additions and 745 deletions

View file

@ -173,7 +173,6 @@ private:
Vector m_learnVelocity {};
Vector m_learnPosition {};
Vector m_bombOrigin {};
Vector m_lastNode {};
IntArray m_terrorPoints {};
@ -253,7 +252,6 @@ public:
void clearVisited ();
void eraseFromBucket (const Vector &pos, int index);
void setBombOrigin (bool reset = false, const Vector &pos = nullptr);
void unassignPath (int from, int to);
void convertFromPOD (Path &path, const PODPath &pod) const;
void convertToPOD (const Path &path, PODPath &pod);
@ -292,10 +290,6 @@ public:
m_editFlags &= ~flag;
}
const Vector &getBombOrigin () const {
return m_bombOrigin;
}
// access paths
Path &operator [] (int index) {
return m_paths[index];