Started work on new update

Added some small new map generation features
Added "NPCs" and "Quests" (atleast a first experiment for them)
Added magic compass to make search for stairs leass annoying
Added mostly visual season and weather effects
This commit is contained in:
Andre Schweiger 2017-01-07 21:54:28 +01:00
parent f6e2d30ab6
commit 3699414dcd
19 changed files with 1324 additions and 253 deletions

32
source/Quests.h Normal file
View file

@ -0,0 +1,32 @@
#pragma once
#include <stdlib.h>
#include <stdbool.h>
#include "render.h"
#include "Crafting.h"
#define NPC_MENU_TALK 0
typedef struct {
int currentQuest;
bool currentQuestDone;
} Questline;
typedef struct {
int size;
Questline * questlines;
} QuestlineManager;
QuestlineManager questManager;
RecipeManager priestTrades;
RecipeManager farmerTrades;
RecipeManager dwarfTrades;
void initQuests();
void resetQuests();
void freeQuests();
void openNPCMenu(int npc);
void renderNPCMenu(int xscr, int yscr);
void tickNPCMenu();