home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia: Special Games / INFESPGAMES.mdf / os2 / spl / src / spl.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-26  |  2.0 KB  |  64 lines

  1. /* spl.hpp:  Headers for spellbook program
  2.  
  3.     Copyright (C) 1993, 1994 John-Marc Chandonia
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19.  
  20. #define INCL_WIN
  21. #define INCL_DOS
  22. #include <os2.h>
  23. #include "splbook.hpp"
  24.  
  25. /* default name of ini file */
  26. #define INIFILE "splbook.ini"
  27.  
  28. /* default name of file to save changed spells in */
  29. #define CHANGEFILE "splbook.chg"
  30.  
  31. /* default name of file with icon definitions */
  32. #define ICONFILE "splicon.def"
  33.  
  34. /* default name of file with quick master list */
  35. #define QUICKALL "splbook.qck"
  36.  
  37. /* spell record */
  38. typedef struct spellrecord {
  39.     RECORDCORE core;
  40.     spell *s;  // the spell
  41.  
  42.     // some spell info for container details view
  43.     LONG level;  // same as s->level
  44.     // these are all pointers to strings in s:
  45.     PSZ cast;
  46.     PSZ range;
  47.     PSZ duration;
  48.     PSZ area;
  49.     PSZ sphereschool; // pointer to s->school or s->sphere
  50.     PSZ components;
  51.     PSZ save;
  52.  
  53.     spelllist *spl;  // where the spell is in the spellbook
  54. } spellrecord;
  55.  
  56. /* routines from in main program */
  57. VOID enable_menu_item( HWND hwndMenu, SHORT sIditem, BOOL bEnable);
  58. void check_menu_item(HWND hwndframe, 
  59.              short submenu_id, 
  60.              short item_id, 
  61.              BOOL checked);
  62. HPOINTER lookup_icon(spell *s);
  63. void titleprintf(HWND hwndframe, char *fmt, ...);
  64.