home *** CD-ROM | disk | FTP | other *** search
/ hobbes.nmsu.edu 2008 / 2008-06-02_hobbes.nmsu.edu.zip / new / scummc-0.2.0-os2.zip / ScummC / examples / openquest / common.sch < prev    next >
Encoding:
Text File  |  2008-04-06  |  2.5 KB  |  107 lines

  1. /* ScummC
  2.  * Copyright (C) 2007  Alban Bedel
  3.  *
  4.  * This program is free software; you can redistribute it and/or
  5.  * modify it under the terms of the GNU General Public License
  6.  * as published by the Free Software Foundation; either version 2
  7.  * of the License, or (at your option) any later version.
  8.  
  9.  * This program is distributed in the hope that it will be useful,
  10.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.  * GNU General Public License for more details.
  13.  
  14.  * You should have received a copy of the GNU General Public License
  15.  * along with this program; if not, write to the Free Software
  16.  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  17.  *
  18.  */
  19.  
  20. // The action verbs
  21. verb Give,  PickUp, Use;
  22. verb Open,  LookAt, Smell;
  23. verb TalkTo,Move;
  24.  
  25. verb WalkTo, WalkToXY;
  26.  
  27. verb UsedWith;
  28. verb InventoryObject;
  29.  
  30. bit verbsOn,cursorOn,cursorLoaded;
  31. int sntcVerb,sntcObjA,sntcObjADesc,sntcObjB,sntcObjBDesc;
  32. int* invObj;
  33.  
  34.  
  35. // The sentence line
  36. verb SntcLine;
  37.  
  38. // The inventory slots
  39. verb invSlot0 @ 100, invSlot1 @ 101, invSlot2 @ 102, invSlot3 @ 103,
  40.     invSlot4 @ 104, invSlot5 @ 105, invSlot6 @ 106, invSlot7 @ 107;
  41.  
  42. // The inventory arrows
  43. verb invUp, invDown;
  44. int invOffset;
  45. #define INVENTORY_COL   2
  46. #define INVENTORY_LINE  2
  47. #define INVENTORY_SLOTS (INVENTORY_COL*INVENTORY_LINE)
  48.  
  49. // The verb colors
  50. #define VERB_COLOR       104
  51. #define VERB_HI_COLOR    10
  52. #define VERB_DIM_COLOR   93
  53. #define VERB_BACK_COLOR  60
  54.  
  55. // Object callbacks
  56. verb Icon,Preposition,SetBoxes;
  57.  
  58. // Object class
  59. class Openable,Pickable, Person;
  60.  
  61. // Allow the objects to insert a word (like "to" or "with") between the
  62. // verb and object in the sentence.
  63. char *sntcPrepo;
  64.  
  65. // List of the objects used to handle action on actors
  66. int  *actorObject;
  67.  
  68.  
  69. // define actors
  70. actor ensignZob;
  71. #define ZOB_COLOR     231
  72. #define ZOB_DIM_COLOR 232
  73. actor commanderZif;
  74. #define ZIF_COLOR     243
  75.  
  76. actor carol;
  77. #define CAROL_COLOR   249
  78.  
  79. // animated item actors
  80. actor bluecupActor;
  81. actor cubeActor;
  82.  
  83. // The room we start in
  84. room Road;
  85.  
  86. // The secret room
  87. room SecretRoom;
  88.  
  89. room ResRoom {
  90.  
  91.     // our standard charset
  92.     chset chtest;
  93.     // dialog charset
  94.     chset dialogCharset;
  95.  
  96.     script inputHandler(int area,int cmd, int btn);
  97.     script keyboardHandler(int key);
  98.     script inventoryHandler(int obj);
  99.     //script showVerbs(int show);
  100.     script showCursor();
  101.     script hideCursor();
  102.     script mouseWatch();
  103.     script defaultAction(int vrb, int objA, int objB);
  104.  
  105.     script quit();
  106. }
  107.