items.h

Go to the documentation of this file.
00001 
00007 /*
00008 Copyright (C) 1998  Jeffrey S. Freedman
00009 
00010 This program is free software; you can redistribute it and/or
00011 modify it under the terms of the GNU General Public License
00012 as published by the Free Software Foundation; either version 2
00013 of the License, or (at your option) any later version.
00014 
00015 This program is distributed in the hope that it will be useful,
00016 but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018 GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 */
00024 
00025 #ifndef INCL_ITEMS
00026 #define INCL_ITEMS 1
00027 
00028 #ifndef ALPHA_LINUX_CXX
00029 #  include  <iosfwd>
00030 #endif
00031 
00032 extern char **item_names;   // The game items' names.
00033 extern int num_item_names;
00034 
00035 void Setup_item_names (std::ifstream& items, std::ifstream& msgs);
00036 
00037 /*
00038  *  Some offsets in text.flx and exultmsg.txt:
00039  */
00040 const int first_move_aside = 0x400; // For guards when blocked.
00041 const int last_move_aside = 0x402;
00042 const int first_preach = 0x403, last_preach = 0x407;
00043 const int first_preach2 = 0x408, last_preach2 = 0x40b;
00044 const int first_amen = 0x40c, last_amen = 0x40f;
00045 const int first_waiter_ask = 0x41b, last_waiter_ask = 0x41f;
00046 const int first_more_food = 0x420, last_more_food = 0x424;
00047 const int first_munch = 0x425, last_munch = 0x428;
00048 const int first_ouch = 0x429;
00049 const int last_ouch = 0x42c;
00050 const int first_need_help = 0x430;
00051 const int last_need_help = 0x433;
00052 const int first_will_help = 0x434;
00053 const int last_will_help = 0x436;
00054 const int first_to_battle = 0x439;
00055 const int last_to_battle = 0x43b;
00056 const int first_farmer = 0x43f, last_farmer = 0x441;
00057 const int first_miner = 0x442, last_miner = 0x444;
00058 const int first_flee = 0x448;
00059 const int last_flee = 0x44e;
00060 const int first_lamp_on = 0x463;
00061 const int last_lamp_on = 0x466;
00062 const int lamp_off = 0x467;
00063 const int first_call_police = 0x469;
00064 const int last_call_police = 0x46d;
00065 const int first_call_guards = 0x46c;
00066 const int last_call_guards = 0x46d;
00067 const int first_theft = 0x46e;    // Warnings.
00068 const int last_theft = 0x470;
00069 const int first_close_shutters = 0x471;
00070 const int last_close_shutters = 0x473;
00071 const int first_open_shutters = 0x474;
00072 const int last_open_shutters = 0x476;
00073 const int first_hunger = 0x477;   // A little hungry.  (3 of each).
00074 const int first_needfood = 0x47a; // Must have food.
00075 const int first_starving = 0x47b; // Starving.
00076 const int heard_something = 0x495;
00077 const int first_awakened = 0x495;
00078 const int last_awakened = 0x49a;
00079 
00080 //  Messages in exultmsg.txt:
00081 const int first_chair_thief = 2800, last_chair_thief = 2804;
00082 const int first_waiter_banter = 2805, last_waiter_banter = 2807;
00083 const int first_waiter_serve = 2808, last_waiter_serve = 2809;
00084 const int first_bed_occupied = 2810, num_bed_occupied = 3;
00085 const int first_catchup = 2813, last_catchup = 2815;
00086 
00087 #endif
00088 
00089 
00090 
00091 
00092 

Generated on Mon Jul 9 14:42:50 2007 for ExultEngine by  doxygen 1.5.1