quest.h File Reference

#include "main.h"
#include <stdio.h>
Include dependency graph for quest.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  square_info
struct  npc_sect
struct  quest
struct  quest_container

Defines

#define MAX_QUESTS   30
#define STAY_ON_SQUARE   0
#define QRANDOM   1
#define TALK_WITH_NPC   2
#define DOOR_TOUCHED   3
#define SHOW_MESSAGE   0
#define CHANGE_NPC_SECT   1
#define NEW_QUEST   2
#define TELEPORT   3
#define GET_KEY   4
#define UNLOCK_DOOR   5
#define FORCED_CHECK   0
#define PL_TALKED   1
#define DOOR_OPENING   2

Functions

void init_quest_system ()
void register_quest (struct quest q)
void unregister_quest_byname (char *name)
void kill_all_quests ()
int qparse_section (FILE *cfg, char *section)
int qparse_file (char *filename)
void check_state (struct leveldata ld, int action, void *info)
void qreward (struct leveldata ld, struct quest q)
int get_quests_number ()
struct questget_quest (int idx)
int save_quests (char *filename)

Variables

struct quest_container all_quests

Define Documentation

#define CHANGE_NPC_SECT   1
#define DOOR_OPENING   2
#define DOOR_TOUCHED   3
#define FORCED_CHECK   0
#define GET_KEY   4
#define MAX_QUESTS   30
#define NEW_QUEST   2
#define PL_TALKED   1
#define QRANDOM   1
#define SHOW_MESSAGE   0
#define STAY_ON_SQUARE   0
#define TALK_WITH_NPC   2
#define TELEPORT   3
#define UNLOCK_DOOR   5

Function Documentation

void check_state ( struct leveldata  ld,
int  action,
void *  info 
)

Here is the call graph for this function:

struct quest* get_quest ( int  idx  )  [read]
int get_quests_number (  ) 
void init_quest_system (  ) 
void kill_all_quests (  ) 
int qparse_file ( char *  filename  ) 

Here is the call graph for this function:

int qparse_section ( FILE *  cfg,
char *  section 
)

Here is the call graph for this function:

void qreward ( struct leveldata  ld,
struct quest  q 
)

Here is the call graph for this function:

void register_quest ( struct quest  q  ) 
int save_quests ( char *  filename  ) 
void unregister_quest_byname ( char *  name  ) 

Variable Documentation

Generated on Mon Nov 15 10:27:11 2010 for Tales of Paraverse by  doxygen 1.6.3