#include "main.h"
#include <stdio.h>
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 quest * | get_quest (int idx) |
int | save_quests (char *filename) |
Variables | |
struct quest_container | all_quests |
#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 |
void check_state | ( | struct leveldata | ld, | |
int | action, | |||
void * | info | |||
) |
struct quest* get_quest | ( | int | idx | ) | [read] |
int get_quests_number | ( | ) |
void init_quest_system | ( | ) |
void kill_all_quests | ( | ) |
int qparse_file | ( | char * | filename | ) |
int qparse_section | ( | FILE * | cfg, | |
char * | section | |||
) |
void register_quest | ( | struct quest | q | ) |
int save_quests | ( | char * | filename | ) |
void unregister_quest_byname | ( | char * | name | ) |
struct quest_container all_quests |