added finding path with A* and json file to know where character can walk
This commit is contained in:
1 parent
eff7322140
commit
4eaefd25d4
11 files changed
+905
-11
No files matched your search
+5
-1
@@ -22,6 +22,7 @@
|
||||
#include "ScriptEngine.h"
|
||||
#include <unordered_map>
|
||||
#include "dialogue/DialogueSystem.h"
|
||||
#include "navigation/PathFinder.h"
|
||||
#include <unordered_set>
|
||||
|
||||
namespace ZL {
|
||||
@@ -40,6 +41,7 @@ namespace ZL {
|
||||
bool requestDialogueStart(const std::string& dialogueId);
|
||||
void setDialogueFlag(const std::string& flag, int value);
|
||||
int getDialogueFlag(const std::string& flag) const;
|
||||
bool setNavigationAreaAvailable(const std::string& areaName, bool available);
|
||||
|
||||
Renderer renderer;
|
||||
TaskManager taskManager;
|
||||
@@ -84,6 +86,7 @@ namespace ZL {
|
||||
// Public access for ScriptEngine
|
||||
MenuManager menuManager;
|
||||
ScriptEngine scriptEngine;
|
||||
PathFinder navigation;
|
||||
|
||||
private:
|
||||
bool rightMouseDown = false;
|
||||
@@ -98,6 +101,7 @@ namespace ZL {
|
||||
void drawUI();
|
||||
void drawGame();
|
||||
void drawLoading();
|
||||
void setupNavigation();
|
||||
void handleDown(int64_t fingerId, int mx, int my);
|
||||
void handleUp(int64_t fingerId, int mx, int my);
|
||||
void handleMotion(int64_t fingerId, int mx, int my);
|
||||
@@ -124,4 +128,4 @@ namespace ZL {
|
||||
};
|
||||
|
||||
|
||||
} // namespace ZL
|
||||
} // namespace ZL
|
||||
Reference in new issue
Block a user