ScummVM API documentation
game_script.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * Additional copyright for this file:
8  * Copyright (C) 1999-2000 Revolution Software Ltd.
9  * This code is based on source code created by Revolution Software,
10  * used with permission.
11  *
12  * This program is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation, either version 3 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program. If not, see <http://www.gnu.org/licenses/>.
24  *
25  */
26 
27 #ifndef ICB_GAME_SCRIPT
28 #define ICB_GAME_SCRIPT
29 
30 #include "engines/icb/common/px_common.h"
31 
32 namespace ICB {
33 
34 class _game_script {
35 
36 public:
37  bool8 running_from_game_script;
38 
39  uint8 *buf;
40  char cluster[ENGINE_STRING_LEN];
41  char fname[ENGINE_STRING_LEN];
42  uint32 fn_hash;
43  uint32 cluster_hash;
44 
45  uint32 pc;
46 
47  void Restart_game_script();
48 
49  bool8 Init_game_script();
50 
51  void Run_to_bookmark(const char *name);
52 
53  void Process_game_script();
54 
55  void Fetch_next_param(char *p);
56 
57  bool8 Running_from_gamescript();
58 
59  void Fetch_next_line();
60 };
61 
62 } // End of namespace ICB
63 
64 #endif
Definition: actor.h:32
Definition: game_script.h:34