1 /* 2 This file is part of "Avanor, the Land of Mystery" roguelike game 3 Home page: http://www.avanor.com/ 4 Copyright (C) 2000-2003 Vadim Gaidukevich 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2 of the License, or 9 (at your option) any later version. 10 11 This program is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program; if not, write to the Free Software 18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 */ 20 21 #ifndef __QUEST_H 22 #define __QUEST_H 23 24 #include "itemdef.h" 25 26 class XFile; 27 28 class XQuest 29 { 30 public: XQuest()31 XQuest() 32 { 33 beelzvile_killed = 0; 34 beelzvile_ordered = 0; 35 hero_die = 0; 36 hero_win = 0; 37 orcs_killed = 0; 38 total_orcs_killed = 0; 39 guards_get_orc_slay = 0; 40 yohjishiro_it_quest = IT_UNKNOWN; 41 ahk_ulan_ordered = 0; 42 ahk_ulan_killed = 0; 43 ahk_ulan_quest = 0; 44 roderick_ordered = 0; 45 roderick_killed = 0; 46 roderick_quest = 0; 47 roderick_quest2 = 0; 48 torin_quest = 0; 49 }; 50 51 void ShowQuests(); 52 53 int beelzvile_killed; 54 int beelzvile_ordered; 55 56 int ahk_ulan_ordered; 57 int ahk_ulan_killed; 58 59 int ahk_ulan_quest; 60 61 int roderick_ordered; 62 int roderick_killed; 63 int roderick_quest; 64 int roderick_quest2; 65 66 int orcs_killed; 67 int total_orcs_killed; 68 69 int guards_get_orc_slay; 70 71 int torin_quest; 72 73 ITEM_TYPE yohjishiro_it_quest; 74 75 static XQuest quest; 76 77 int hero_die; 78 int hero_win; 79 80 void Store(XFile * f); 81 void Restore(XFile * f); 82 }; 83 84 #endif 85