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 / dialog.sch < prev    next >
Encoding:
Text File  |  2008-04-06  |  1.5 KB  |  50 lines

  1. /* ScummC
  2.  * Copyright (C) 2007  Alban Bedel, Gerrit Karius
  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.  
  21. // Dialog string list
  22. char *dialogList;
  23. int numDialog,numActiveDialog,dialogOffset,selectedSentence;
  24. int dialogColor, dialogHiColor;
  25. verb dialogVerb0 @ 110, dialogVerb1 @ 111, dialogVerb2 @ 112;
  26. verb dialogVerb3 @ 113, dialogVerb4 @ 114;
  27. verb dialogUp, dialogDown;
  28.  
  29. #define MAX_DIALOG_LINES    5
  30. #define MAX_DIALOG_SENTENCE 16
  31.  
  32.  
  33.  
  34. room Dialog {
  35.  
  36.     // Reset the dialog list
  37.     script dialogClear(int kill);
  38.     // Add an entry to the dialog list
  39.     script dialogAdd(char* str);
  40.     // Remove an entry, if kill is not zero undim the string too
  41.     script dialogRemove(int idx, int kill);
  42.     // Start a dialog
  43.     script dialogStart(int color, int hiColor);
  44.     // Hide the dialog verbs
  45.     script dialogHide();
  46.     // End a dialog
  47.     script dialogEnd();
  48.  
  49. }
  50.