Добавлена система NPC, а также боевая система.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "player.h"
|
||||
#include "location.h"
|
||||
#include "item.h"
|
||||
#include "npc.h"
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
@@ -15,6 +16,7 @@ private:
|
||||
Player player;
|
||||
std::vector<Location> locations;
|
||||
std::vector<Item> itemDatabase;
|
||||
std::vector<NPC> npcs;
|
||||
|
||||
void showMainMenu();
|
||||
|
||||
@@ -25,6 +27,10 @@ private:
|
||||
|
||||
Location* getCurrentLocation();
|
||||
|
||||
void interactWithNPC(Location& location);
|
||||
void startCombat(NPC& npc);
|
||||
void applyDialogResult(NPC& npc, const DialogOption& option);
|
||||
|
||||
void render();
|
||||
void processCommand();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user