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  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20  *
21  */
22 
23 #include "common/textconsole.h"
24 #include "titanic/true_talk/tt_room_script.h"
25 
26 namespace Titanic {
27 
TTroomScriptBase(int scriptId,const char * charClass,const char * charName,int v3,int v4,int v5,int v6,int v2,int v7)28 TTroomScriptBase::TTroomScriptBase(int scriptId,
29 		const char *charClass, const char *charName,
30 		int v3, int v4, int v5, int v6, int v2, int v7) : _scriptId(scriptId),
31 		TTscriptBase(3, charClass, v2, charName, v3, v4, v5, v6, v7) {
32 }
33 
34 /*------------------------------------------------------------------------*/
35 
TTroomScript(int scriptId)36 TTroomScript::TTroomScript(int scriptId) :
37 	TTroomScriptBase(scriptId, "", "", 0, -1, -1, -1, 0, 0), _field54(0) {
38 }
39 
proc8() const40 bool TTroomScript::proc8() const {
41 	return false;
42 }
43 
proc9(int v)44 void TTroomScript::proc9(int v) {
45 	if (v == 1)
46 		_field54 = 1;
47 }
48 
scriptChanged(TTscriptBase * npcScript,int id)49 ScriptChangedResult TTroomScript::scriptChanged(TTscriptBase *npcScript, int id) {
50 	if (id == 1)
51 		_field54 = 1;
52 
53 	return SCR_1;
54 }
55 
proc11() const56 bool TTroomScript::proc11() const {
57 	return true;
58 }
59 
60 } // End of namespace Titanic
61