2016-02-25 08:39:15 -05:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2016-04-03 16:16:35 -04:00
|
|
|
#include "titanic/support/screen_manager.h"
|
2016-03-05 15:44:39 -05:00
|
|
|
#include "titanic/star_control/star_control.h"
|
2016-02-25 08:39:15 -05:00
|
|
|
|
|
|
|
namespace Titanic {
|
|
|
|
|
2016-03-05 21:44:57 -05:00
|
|
|
CStarControl::CStarControl() : _fieldBC(0), _field80A0(0),
|
|
|
|
_field80A4(0), _field80A8(0), _field80AC(0), _field80B0(0) {
|
|
|
|
}
|
|
|
|
|
2016-06-29 19:53:16 -04:00
|
|
|
void CStarControl::save(SimpleFile *file, int indent) {
|
2016-02-25 08:39:15 -05:00
|
|
|
file->writeNumberLine(1, indent);
|
|
|
|
CGameObject::save(file, indent);
|
|
|
|
}
|
|
|
|
|
2016-02-28 21:42:13 -05:00
|
|
|
void CStarControl::load(SimpleFile *file) {
|
2016-03-05 15:44:39 -05:00
|
|
|
int val = file->readNumber();
|
|
|
|
|
|
|
|
if (!val) {
|
2016-03-05 21:44:57 -05:00
|
|
|
_sub1.load(file, 0);
|
|
|
|
if (!_sub1.initDocument())
|
|
|
|
error("Couldn't initialise the StarField document");
|
|
|
|
|
|
|
|
_sub11.load(file, 0);
|
|
|
|
CScreenManager *screenManager = CScreenManager::setCurrent();
|
|
|
|
if (!screenManager)
|
|
|
|
error("There's no screen manager during loading");
|
2016-03-05 15:44:39 -05:00
|
|
|
|
2016-03-05 21:44:57 -05:00
|
|
|
warning("TODO");
|
2016-03-05 15:44:39 -05:00
|
|
|
}
|
|
|
|
|
2016-02-25 08:39:15 -05:00
|
|
|
CGameObject::load(file);
|
|
|
|
}
|
|
|
|
|
2016-06-26 17:20:33 -04:00
|
|
|
void CStarControl::fn3() {
|
|
|
|
warning("CStarControl::fn3");
|
|
|
|
}
|
|
|
|
|
2016-06-27 08:28:10 -04:00
|
|
|
void CStarControl::fn1(int v) {
|
|
|
|
warning("CStarControl::fn1");
|
|
|
|
}
|
|
|
|
|
|
|
|
void CStarControl::fn4() {
|
|
|
|
warning("CStarControl::fn4");
|
|
|
|
}
|
|
|
|
|
2016-02-25 08:39:15 -05:00
|
|
|
} // End of namespace Titanic
|