Working on path visualization
This commit is contained in:
1 parent
96e748715b
commit
0240721d46
12 files changed
+335
-3
No files matched your search
@@ -8,6 +8,7 @@
|
||||
#include "items/InteractiveObject.h"
|
||||
#include "navigation/PathFinder.h"
|
||||
#include "render/ShadowMap.h"
|
||||
#include "render/PathVisualization.h"
|
||||
|
||||
#include "ScriptEngine.h"
|
||||
#include "dialogue/DialogueSystem.h"
|
||||
@@ -178,6 +179,10 @@ namespace FRG
|
||||
|
||||
void update(int64_t deltaMs);
|
||||
void updateNpcCar(int64_t deltaMs);
|
||||
// Purely visual feedback for click-triggered player routes. Disabling it
|
||||
// also cancels an animation that is currently playing.
|
||||
void setPathVisualizationEnabled(bool enabled);
|
||||
bool isPathVisualizationEnabled() const { return pathVisualization.isEnabled(); }
|
||||
|
||||
void handleDown(int64_t fingerId, int eventX, int eventY, int mx, int my);
|
||||
void handleUp(int64_t fingerId, int mx, int my);
|
||||
@@ -228,6 +233,8 @@ namespace FRG
|
||||
int findNpcIndex(const Character* npc) const;
|
||||
void fireBumpCallbacks(Character* mover, Character* standing);
|
||||
|
||||
PathVisualization pathVisualization;
|
||||
|
||||
std::unordered_map<Character*, Eigen::Vector3f> lastCharacterPositions;
|
||||
std::unordered_map<Character*, int64_t> replanCooldownRemainingMs;
|
||||
std::unordered_map<Character*, int> stuckFrameCounts;
|
||||
|
||||
Reference in new issue
Block a user