2011-02-14 20:37:27 +11: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.
|
2013-11-10 23:00:15 +01:00
|
|
|
*
|
2011-02-14 20:37:27 +11:00
|
|
|
* 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.
|
2014-02-18 02:34:26 +01:00
|
|
|
*
|
2011-02-14 20:37:27 +11:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2014-02-18 02:34:26 +01:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2011-02-14 20:37:27 +11:00
|
|
|
* GNU General Public License for more details.
|
2014-02-18 02:34:26 +01:00
|
|
|
*
|
2011-02-14 20:37:27 +11:00
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "tsage/globals.h"
|
2011-04-25 17:06:35 +10:00
|
|
|
#include "tsage/tsage.h"
|
2011-08-13 19:49:54 +10:00
|
|
|
#include "tsage/blue_force/blueforce_logic.h"
|
|
|
|
#include "tsage/ringworld/ringworld_demo.h"
|
|
|
|
#include "tsage/ringworld/ringworld_logic.h"
|
2011-10-22 20:44:26 +11:00
|
|
|
#include "tsage/ringworld2/ringworld2_logic.h"
|
2013-10-31 20:41:48 -04:00
|
|
|
#include "tsage/ringworld2/ringworld2_scenes0.h"
|
2015-05-19 23:16:31 -04:00
|
|
|
#include "tsage/sherlock/sherlock_logo.h"
|
2013-08-24 20:45:18 -04:00
|
|
|
#include "tsage/staticres.h"
|
2011-02-14 20:37:27 +11:00
|
|
|
|
2011-08-15 20:47:59 +10:00
|
|
|
namespace TsAGE {
|
2011-02-14 20:37:27 +11:00
|
|
|
|
2011-10-02 19:59:13 +11:00
|
|
|
Globals *g_globals = NULL;
|
|
|
|
ResourceManager *g_resourceManager = NULL;
|
2011-02-14 20:37:27 +11:00
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Instantiates a saved object that can be instantiated
|
|
|
|
*/
|
|
|
|
static SavedObject *classFactoryProc(const Common::String &className) {
|
|
|
|
if (className == "ObjectMover") return new ObjectMover();
|
|
|
|
if (className == "NpcMover") return new NpcMover();
|
|
|
|
if (className == "ObjectMover2") return new ObjectMover2();
|
|
|
|
if (className == "ObjectMover3") return new ObjectMover3();
|
|
|
|
if (className == "PlayerMover") return new PlayerMover();
|
2011-04-27 23:52:20 +03:00
|
|
|
if (className == "SceneObjectWrapper") return new SceneObjectWrapper();
|
2011-05-08 19:08:35 +10:00
|
|
|
if (className == "PaletteRotation") return new PaletteRotation();
|
|
|
|
if (className == "PaletteFader") return new PaletteFader();
|
2013-10-31 20:24:18 -04:00
|
|
|
if (className == "SceneText") return new SceneText();
|
2013-10-31 20:41:48 -04:00
|
|
|
|
|
|
|
// Return to Ringworld specific classes
|
|
|
|
if (className == "Scene205_Star") return new Ringworld2::Star();
|
|
|
|
|
2011-02-14 20:37:27 +11:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
|
2016-03-10 21:52:17 -05:00
|
|
|
Globals::Globals() : _dialogCenter(160, 140), _gfxManagerInstance(_screen),
|
2011-08-16 21:15:18 +10:00
|
|
|
_randomSource("tsage"), _color1(0), _color2(255), _color3(255) {
|
2011-02-14 20:37:27 +11:00
|
|
|
reset();
|
2011-02-24 22:24:19 +11:00
|
|
|
_stripNum = 0;
|
2011-06-04 14:22:09 +10:00
|
|
|
_gfxEdgeAdjust = 3;
|
2014-01-26 19:06:06 +01:00
|
|
|
_gfxFontNumber = 0;
|
2011-04-13 21:27:46 +02:00
|
|
|
|
2014-01-01 16:30:02 +01:00
|
|
|
if (g_vm->getGameID() == GType_Ringworld) {
|
|
|
|
if (g_vm->getFeatures() & GF_DEMO) {
|
|
|
|
_gfxFontNumber = 0;
|
|
|
|
_gfxColors.background = 6;
|
|
|
|
_gfxColors.foreground = 0;
|
|
|
|
_fontColors.background = 255;
|
|
|
|
_fontColors.foreground = 6;
|
|
|
|
_dialogCenter.y = 80;
|
|
|
|
// Workaround in order to use later version of the engine
|
|
|
|
_color1 = _gfxColors.foreground;
|
|
|
|
_color2 = _gfxColors.foreground;
|
|
|
|
_color3 = _gfxColors.foreground;
|
|
|
|
} else if (g_vm->getFeatures() & GF_CD) {
|
|
|
|
_gfxFontNumber = 50;
|
|
|
|
_gfxColors.background = 53;
|
|
|
|
_gfxColors.foreground = 0;
|
|
|
|
_fontColors.background = 51;
|
|
|
|
_fontColors.foreground = 54;
|
|
|
|
_color1 = 18;
|
|
|
|
_color2 = 18;
|
|
|
|
_color3 = 18;
|
|
|
|
} else {
|
|
|
|
// Floppy version
|
|
|
|
_gfxFontNumber = 50;
|
|
|
|
_gfxColors.background = 53;
|
|
|
|
_gfxColors.foreground = 18;
|
|
|
|
_fontColors.background = 51;
|
|
|
|
_fontColors.foreground = 54;
|
|
|
|
// Workaround in order to use later version of the engine
|
|
|
|
_color1 = _gfxColors.foreground;
|
|
|
|
_color2 = _gfxColors.foreground;
|
|
|
|
_color3 = _gfxColors.foreground;
|
|
|
|
}
|
2011-10-02 19:59:13 +11:00
|
|
|
} else if (g_vm->getGameID() == GType_BlueForce) {
|
2011-08-16 21:15:18 +10:00
|
|
|
// Blue Force
|
|
|
|
_gfxFontNumber = 0;
|
|
|
|
_gfxColors.background = 89;
|
|
|
|
_gfxColors.foreground = 83;
|
|
|
|
_fontColors.background = 88;
|
|
|
|
_fontColors.foreground = 92;
|
2011-09-05 20:57:06 +10:00
|
|
|
_dialogCenter.y = 140;
|
2011-10-22 20:44:26 +11:00
|
|
|
} else if (g_vm->getGameID() == GType_Ringworld2) {
|
|
|
|
// Return to Ringworld
|
2011-11-01 21:06:57 +11:00
|
|
|
_gfxFontNumber = 50;
|
|
|
|
_gfxColors.background = 0;
|
|
|
|
_gfxColors.foreground = 59;
|
|
|
|
_fontColors.background = 4;
|
|
|
|
_fontColors.foreground = 15;
|
|
|
|
_color1 = 59;
|
|
|
|
_color2 = 15;
|
|
|
|
_color3 = 4;
|
|
|
|
_dialogCenter.y = 100;
|
2011-04-28 19:14:37 +10:00
|
|
|
}
|
2016-03-10 21:52:17 -05:00
|
|
|
|
2011-02-14 20:37:27 +11:00
|
|
|
_gfxManagers.push_back(&_gfxManagerInstance);
|
|
|
|
|
|
|
|
_sceneObjects = &_sceneObjectsInstance;
|
|
|
|
_sceneObjects_queue.push_front(_sceneObjects);
|
|
|
|
|
2011-03-18 22:58:36 +11:00
|
|
|
_prevSceneOffset = Common::Point(-1, -1);
|
2011-06-22 18:30:59 +10:00
|
|
|
_sounds.push_back(&_soundHandler);
|
|
|
|
_sounds.push_back(&_sequenceManager._soundHandler);
|
2011-04-25 19:39:45 +10:00
|
|
|
|
2013-10-27 16:59:38 +01:00
|
|
|
_scrollFollower = nullptr;
|
|
|
|
|
|
|
|
_inventory = nullptr;
|
|
|
|
_game = nullptr;
|
|
|
|
_sceneHandler = nullptr;
|
2011-04-25 19:39:45 +10:00
|
|
|
|
2011-10-02 19:59:13 +11:00
|
|
|
switch (g_vm->getGameID()) {
|
2011-05-14 18:19:35 +10:00
|
|
|
case GType_Ringworld:
|
2011-10-02 19:59:13 +11:00
|
|
|
if (!(g_vm->getFeatures() & GF_DEMO)) {
|
2011-08-15 19:26:15 +10:00
|
|
|
_inventory = new Ringworld::RingworldInvObjectList();
|
|
|
|
_game = new Ringworld::RingworldGame();
|
2011-05-14 18:19:35 +10:00
|
|
|
} else {
|
2011-08-15 19:26:15 +10:00
|
|
|
_game = new Ringworld::RingworldDemoGame();
|
2011-05-14 18:19:35 +10:00
|
|
|
}
|
2011-08-20 19:14:23 +10:00
|
|
|
_sceneHandler = new SceneHandler();
|
2011-05-14 18:19:35 +10:00
|
|
|
break;
|
|
|
|
|
|
|
|
case GType_BlueForce:
|
2011-08-15 19:26:15 +10:00
|
|
|
_game = new BlueForce::BlueForceGame();
|
2011-08-23 21:12:07 +10:00
|
|
|
_inventory = new BlueForce::BlueForceInvObjectList();
|
2011-08-20 19:14:23 +10:00
|
|
|
_sceneHandler = new BlueForce::SceneHandlerExt();
|
2011-05-14 18:19:35 +10:00
|
|
|
break;
|
2011-10-22 20:44:26 +11:00
|
|
|
|
|
|
|
case GType_Ringworld2:
|
|
|
|
_inventory = new Ringworld2::Ringworld2InvObjectList();
|
|
|
|
_game = new Ringworld2::Ringworld2Game();
|
2011-10-31 11:35:04 +11:00
|
|
|
_sceneHandler = new Ringworld2::SceneHandlerExt();
|
2011-10-22 20:44:26 +11:00
|
|
|
break;
|
2015-08-16 14:24:18 -04:00
|
|
|
#ifdef TSAGE_SHERLOCK_ENABLED
|
2015-05-19 23:16:31 -04:00
|
|
|
case GType_Sherlock1:
|
|
|
|
_inventory = nullptr;
|
2015-05-21 18:48:21 -04:00
|
|
|
_sceneHandler = new Sherlock::SherlockSceneHandler();
|
2015-05-19 23:16:31 -04:00
|
|
|
_game = new Sherlock::SherlockLogo();
|
|
|
|
break;
|
2015-08-16 14:24:18 -04:00
|
|
|
#endif
|
|
|
|
default:
|
|
|
|
break;
|
2011-04-25 19:39:45 +10:00
|
|
|
}
|
2013-10-27 16:59:38 +01:00
|
|
|
|
2011-02-18 00:02:21 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
Globals::~Globals() {
|
2011-08-13 21:14:48 +10:00
|
|
|
_scenePalette.clearListeners();
|
2011-05-06 19:38:17 +10:00
|
|
|
delete _inventory;
|
2011-08-20 19:14:23 +10:00
|
|
|
delete _sceneHandler;
|
2011-05-06 19:38:17 +10:00
|
|
|
delete _game;
|
2011-10-02 19:59:13 +11:00
|
|
|
g_globals = NULL;
|
2011-02-14 20:37:27 +11:00
|
|
|
}
|
|
|
|
|
|
|
|
void Globals::reset() {
|
2011-11-16 18:06:30 +01:00
|
|
|
Common::fill(&_flags[0], &_flags[MAX_FLAGS], false);
|
2011-10-02 19:59:13 +11:00
|
|
|
g_saver->addFactory(classFactoryProc);
|
2011-02-14 20:37:27 +11:00
|
|
|
}
|
|
|
|
|
2011-05-04 11:41:47 +03:00
|
|
|
void Globals::synchronize(Serializer &s) {
|
2011-05-04 10:52:36 +03:00
|
|
|
if (s.getVersion() >= 2)
|
2011-05-04 11:41:47 +03:00
|
|
|
SavedObject::synchronize(s);
|
2011-02-14 20:37:27 +11:00
|
|
|
assert(_gfxManagers.size() == 1);
|
|
|
|
|
2011-05-04 11:41:47 +03:00
|
|
|
_sceneItems.synchronize(s);
|
2011-02-14 20:37:27 +11:00
|
|
|
SYNC_POINTER(_sceneObjects);
|
2011-05-04 11:41:47 +03:00
|
|
|
_sceneObjects_queue.synchronize(s);
|
2011-02-14 20:37:27 +11:00
|
|
|
s.syncAsSint32LE(_gfxFontNumber);
|
2011-04-14 14:12:27 +02:00
|
|
|
s.syncAsSint32LE(_gfxColors.background);
|
|
|
|
s.syncAsSint32LE(_gfxColors.foreground);
|
|
|
|
s.syncAsSint32LE(_fontColors.background);
|
|
|
|
s.syncAsSint32LE(_fontColors.foreground);
|
2011-06-20 00:59:48 +02:00
|
|
|
|
2011-06-03 15:02:24 +02:00
|
|
|
if (s.getVersion() >= 4) {
|
2011-08-16 21:15:18 +10:00
|
|
|
s.syncAsByte(_color1);
|
|
|
|
s.syncAsByte(_color2);
|
|
|
|
s.syncAsByte(_color3);
|
2011-06-03 15:02:24 +02:00
|
|
|
}
|
2011-02-14 20:37:27 +11:00
|
|
|
|
2011-04-14 14:34:28 +02:00
|
|
|
s.syncAsSint16LE(_dialogCenter.x); s.syncAsSint16LE(_dialogCenter.y);
|
2011-06-22 18:30:59 +10:00
|
|
|
_sounds.synchronize(s);
|
2011-02-14 20:37:27 +11:00
|
|
|
for (int i = 0; i < 256; ++i)
|
|
|
|
s.syncAsByte(_flags[i]);
|
|
|
|
|
|
|
|
s.syncAsSint16LE(_sceneOffset.x); s.syncAsSint16LE(_sceneOffset.y);
|
2011-03-18 22:58:36 +11:00
|
|
|
s.syncAsSint16LE(_prevSceneOffset.x); s.syncAsSint16LE(_prevSceneOffset.y);
|
2011-02-14 20:37:27 +11:00
|
|
|
SYNC_POINTER(_scrollFollower);
|
|
|
|
s.syncAsSint32LE(_stripNum);
|
2011-10-27 19:32:27 +11:00
|
|
|
|
|
|
|
if (s.getVersion() >= 8)
|
|
|
|
_walkRegions.synchronize(s);
|
2011-02-14 20:37:27 +11:00
|
|
|
}
|
|
|
|
|
2011-06-22 18:30:59 +10:00
|
|
|
void Globals::dispatchSound(ASound *obj) {
|
|
|
|
obj->dispatch();
|
|
|
|
}
|
|
|
|
|
|
|
|
void Globals::dispatchSounds() {
|
|
|
|
Common::for_each(_sounds.begin(), _sounds.end(), Globals::dispatchSound);
|
|
|
|
}
|
|
|
|
|
2011-08-11 22:05:44 +10:00
|
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
|
2013-10-27 14:29:41 +01:00
|
|
|
TsAGE2Globals::TsAGE2Globals() {
|
|
|
|
_onSelectItem = NULL;
|
|
|
|
_interfaceY = 0;
|
|
|
|
}
|
|
|
|
|
2011-10-22 22:41:05 +11:00
|
|
|
void TsAGE2Globals::reset() {
|
|
|
|
Globals::reset();
|
2012-09-26 04:17:31 +02:00
|
|
|
|
2011-10-22 22:41:05 +11:00
|
|
|
// Reset the inventory
|
|
|
|
T2_GLOBALS._uiElements.updateInventory();
|
|
|
|
T2_GLOBALS._uiElements._scoreValue = 0;
|
|
|
|
T2_GLOBALS._uiElements._active = false;
|
|
|
|
}
|
|
|
|
|
2011-10-24 21:45:08 +11:00
|
|
|
void TsAGE2Globals::synchronize(Serializer &s) {
|
|
|
|
Globals::synchronize(s);
|
|
|
|
|
|
|
|
s.syncAsSint16LE(_interfaceY);
|
|
|
|
}
|
|
|
|
|
2011-10-22 22:41:05 +11:00
|
|
|
/*--------------------------------------------------------------------------*/
|
|
|
|
|
2011-08-15 19:26:15 +10:00
|
|
|
namespace BlueForce {
|
2011-08-14 20:18:32 +10:00
|
|
|
|
2011-10-22 20:44:26 +11:00
|
|
|
BlueForceGlobals::BlueForceGlobals(): TsAGE2Globals() {
|
2013-10-27 16:59:38 +01:00
|
|
|
_hiddenDoorStatus = 0;
|
|
|
|
_nico910State = 0;
|
2013-11-26 22:50:54 +01:00
|
|
|
_stuart910State = 0;
|
|
|
|
_nico910Talk = 0;
|
|
|
|
_stuart910Talk = 0;
|
2013-10-27 16:59:38 +01:00
|
|
|
_deziTopic = 0;
|
|
|
|
_deathReason = 0;
|
|
|
|
_driveFromScene = 300;
|
|
|
|
_driveToScene = 0;
|
|
|
|
_subFlagBitArr1 = 0;
|
|
|
|
_subFlagBitArr2 = 0;
|
2013-11-26 22:50:54 +01:00
|
|
|
_scene410HarrisonTalkFl = false;
|
2013-10-27 16:59:38 +01:00
|
|
|
_scene410Action1Count = 0;
|
|
|
|
_scene410TalkCount = 0;
|
2013-11-26 22:50:54 +01:00
|
|
|
_scene410HarrisonMovedFl = false;
|
2013-10-27 16:59:38 +01:00
|
|
|
_bookmark = bNone;
|
|
|
|
_mapLocationId = 1;
|
|
|
|
_clip1Bullets = 8;
|
|
|
|
_clip2Bullets = 8;
|
2013-10-29 08:03:54 +01:00
|
|
|
|
|
|
|
_dayNumber = 0;
|
|
|
|
_tonyDialogCtr = 0;
|
|
|
|
_marinaWomanCtr = 0;
|
|
|
|
_kateDialogCtr = 0;
|
|
|
|
_v4CEB6 = 0;
|
|
|
|
_safeCombination = 0;
|
|
|
|
_gateStatus = 0;
|
|
|
|
_greenDay5TalkCtr = 0;
|
|
|
|
_v4CEC8 = 1;
|
|
|
|
_v4CECA = 0;
|
|
|
|
_v4CECC = 0;
|
2011-09-04 19:11:59 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
void BlueForceGlobals::synchronize(Serializer &s) {
|
2011-10-24 21:45:08 +11:00
|
|
|
TsAGE2Globals::synchronize(s);
|
2013-11-02 11:51:32 +01:00
|
|
|
int16 useless = 0;
|
2011-09-10 11:22:39 +10:00
|
|
|
|
|
|
|
s.syncAsSint16LE(_dayNumber);
|
2011-11-09 08:53:41 +01:00
|
|
|
if (s.getVersion() < 9) {
|
2013-11-02 11:51:32 +01:00
|
|
|
s.syncAsSint16LE(useless);
|
2011-11-09 08:53:41 +01:00
|
|
|
}
|
2011-11-09 09:19:33 +01:00
|
|
|
s.syncAsSint16LE(_tonyDialogCtr);
|
2011-09-23 21:49:19 +10:00
|
|
|
s.syncAsSint16LE(_marinaWomanCtr);
|
2011-11-09 09:19:33 +01:00
|
|
|
s.syncAsSint16LE(_kateDialogCtr);
|
2011-09-17 17:41:12 +10:00
|
|
|
s.syncAsSint16LE(_v4CEB6);
|
2011-10-01 16:05:08 +10:00
|
|
|
s.syncAsSint16LE(_safeCombination);
|
2011-11-12 00:44:48 +01:00
|
|
|
s.syncAsSint16LE(_gateStatus);
|
2011-10-22 00:35:01 +11:00
|
|
|
s.syncAsSint16LE(_greenDay5TalkCtr);
|
2013-11-02 12:14:09 +01:00
|
|
|
if (s.getVersion() < 11)
|
|
|
|
s.syncAsSint16LE(useless);
|
2011-09-23 21:52:40 +02:00
|
|
|
s.syncAsSint16LE(_v4CEC8);
|
2011-10-09 11:25:46 +02:00
|
|
|
s.syncAsSint16LE(_v4CECA);
|
|
|
|
s.syncAsSint16LE(_v4CECC);
|
|
|
|
for (int i = 0; i < 18; i++)
|
2011-11-12 00:44:48 +01:00
|
|
|
s.syncAsByte(_breakerBoxStatusArr[i]);
|
2011-11-22 08:12:59 +01:00
|
|
|
s.syncAsSint16LE(_hiddenDoorStatus);
|
2012-07-11 21:20:52 +10:00
|
|
|
s.syncAsSint16LE(_nico910State);
|
2013-11-26 22:50:54 +01:00
|
|
|
s.syncAsSint16LE(_stuart910State);
|
|
|
|
s.syncAsSint16LE(_nico910Talk);
|
|
|
|
s.syncAsSint16LE(_stuart910Talk);
|
2011-09-17 17:41:12 +10:00
|
|
|
s.syncAsSint16LE(_deziTopic);
|
2011-09-11 21:50:39 +10:00
|
|
|
s.syncAsSint16LE(_deathReason);
|
2011-09-10 11:22:39 +10:00
|
|
|
s.syncAsSint16LE(_driveFromScene);
|
|
|
|
s.syncAsSint16LE(_driveToScene);
|
2013-11-02 12:14:09 +01:00
|
|
|
if (s.getVersion() < 11) {
|
|
|
|
s.syncAsSint16LE(useless);
|
|
|
|
s.syncAsSint16LE(useless);
|
|
|
|
s.syncAsSint16LE(useless);
|
|
|
|
s.syncAsSint16LE(useless);
|
|
|
|
s.syncAsSint16LE(useless);
|
|
|
|
}
|
2011-11-09 08:53:41 +01:00
|
|
|
s.syncAsSint16LE(_subFlagBitArr1);
|
|
|
|
s.syncAsSint16LE(_subFlagBitArr2);
|
2013-11-26 22:50:54 +01:00
|
|
|
s.syncAsSint16LE(_scene410HarrisonTalkFl);
|
2013-10-27 16:59:38 +01:00
|
|
|
s.syncAsSint16LE(_scene410Action1Count);
|
|
|
|
s.syncAsSint16LE(_scene410TalkCount);
|
|
|
|
s.syncAsSint16LE(_scene410HarrisonMovedFl);
|
2013-11-02 12:14:09 +01:00
|
|
|
if (s.getVersion() < 11) {
|
|
|
|
s.syncAsSint16LE(useless);
|
|
|
|
s.syncAsSint16LE(useless);
|
|
|
|
}
|
2011-09-10 11:22:39 +10:00
|
|
|
s.syncAsSint16LE(_bookmark);
|
|
|
|
s.syncAsSint16LE(_mapLocationId);
|
|
|
|
s.syncAsSint16LE(_clip1Bullets);
|
|
|
|
s.syncAsSint16LE(_clip2Bullets);
|
2011-09-04 19:11:59 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
void BlueForceGlobals::reset() {
|
2011-10-22 22:41:05 +11:00
|
|
|
TsAGE2Globals::reset();
|
2011-09-04 19:11:59 +10:00
|
|
|
_scenePalette.clearListeners();
|
2012-09-26 04:17:31 +02:00
|
|
|
|
2011-09-04 19:11:59 +10:00
|
|
|
_scrollFollower = &_player;
|
|
|
|
_bookmark = bNone;
|
|
|
|
|
|
|
|
// Reset the inventory
|
|
|
|
((BlueForceInvObjectList *)_inventory)->reset();
|
|
|
|
|
|
|
|
_mapLocationId = 1;
|
|
|
|
_driveFromScene = 300;
|
|
|
|
_driveToScene = 0;
|
|
|
|
|
2011-10-22 22:41:05 +11:00
|
|
|
_interfaceY = UI_INTERFACE_Y;
|
2011-09-04 19:11:59 +10:00
|
|
|
_dayNumber = 0;
|
2011-11-09 09:19:33 +01:00
|
|
|
_tonyDialogCtr = 0;
|
2011-09-23 21:49:19 +10:00
|
|
|
_marinaWomanCtr = 0;
|
2011-11-09 09:19:33 +01:00
|
|
|
_kateDialogCtr = 0;
|
2011-09-17 17:41:12 +10:00
|
|
|
_v4CEB6 = 0;
|
2011-10-01 16:05:08 +10:00
|
|
|
_safeCombination = 0;
|
2011-11-12 00:44:48 +01:00
|
|
|
_gateStatus = 0;
|
2011-10-22 00:35:01 +11:00
|
|
|
_greenDay5TalkCtr = 0;
|
2011-09-23 21:52:40 +02:00
|
|
|
_v4CEC8 = 1;
|
2011-10-09 11:25:46 +02:00
|
|
|
_v4CECA = 0;
|
|
|
|
_v4CECC = 0;
|
2011-11-12 00:44:48 +01:00
|
|
|
_breakerBoxStatusArr[0] = 2;
|
|
|
|
_breakerBoxStatusArr[1] = 2;
|
|
|
|
_breakerBoxStatusArr[2] = 2;
|
|
|
|
_breakerBoxStatusArr[3] = 1;
|
|
|
|
_breakerBoxStatusArr[4] = 2;
|
|
|
|
_breakerBoxStatusArr[5] = 2;
|
|
|
|
_breakerBoxStatusArr[6] = 2;
|
|
|
|
_breakerBoxStatusArr[7] = 2;
|
|
|
|
_breakerBoxStatusArr[8] = 2;
|
|
|
|
_breakerBoxStatusArr[9] = 2;
|
|
|
|
_breakerBoxStatusArr[10] = 2;
|
|
|
|
_breakerBoxStatusArr[11] = 2;
|
|
|
|
_breakerBoxStatusArr[12] = 1;
|
|
|
|
_breakerBoxStatusArr[13] = 1;
|
|
|
|
_breakerBoxStatusArr[14] = 2;
|
|
|
|
_breakerBoxStatusArr[15] = 2;
|
|
|
|
_breakerBoxStatusArr[16] = 3;
|
|
|
|
_breakerBoxStatusArr[17] = 0;
|
2011-11-22 08:12:59 +01:00
|
|
|
_hiddenDoorStatus = 0;
|
2012-07-11 21:20:52 +10:00
|
|
|
_nico910State = 0;
|
2013-11-26 22:50:54 +01:00
|
|
|
_stuart910State = 0;
|
|
|
|
_nico910Talk = 0;
|
|
|
|
_stuart910Talk = 0;
|
2011-09-17 17:41:12 +10:00
|
|
|
_deziTopic = 0;
|
2011-09-11 21:50:39 +10:00
|
|
|
_deathReason = 0;
|
2011-11-09 08:53:41 +01:00
|
|
|
_subFlagBitArr1 = 0;
|
|
|
|
_subFlagBitArr2 = 0;
|
2013-11-26 22:50:54 +01:00
|
|
|
_scene410HarrisonTalkFl = false;
|
2013-10-27 16:59:38 +01:00
|
|
|
_scene410Action1Count = 0;
|
|
|
|
_scene410TalkCount = 0;
|
2013-11-26 22:50:54 +01:00
|
|
|
_scene410HarrisonMovedFl = false;
|
2011-09-04 21:09:22 +10:00
|
|
|
_clip1Bullets = 8;
|
|
|
|
_clip2Bullets = 8;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool BlueForceGlobals::getHasBullets() {
|
|
|
|
if (!getFlag(fGunLoaded))
|
|
|
|
return false;
|
|
|
|
return BF_GLOBALS.getFlag(fLoadedSpare) ? (_clip2Bullets > 0) : (_clip1Bullets > 0);
|
2011-08-11 22:05:44 +10:00
|
|
|
}
|
2011-06-22 18:30:59 +10:00
|
|
|
|
2011-09-11 15:30:34 +10:00
|
|
|
void BlueForceGlobals::set2Flags(int flagNum) {
|
|
|
|
if (!getFlag(flagNum + 1)) {
|
|
|
|
setFlag(flagNum + 1);
|
|
|
|
setFlag(flagNum);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool BlueForceGlobals::removeFlag(int flagNum) {
|
|
|
|
bool result = getFlag(flagNum);
|
|
|
|
clearFlag(flagNum);
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
2011-08-15 19:26:15 +10:00
|
|
|
} // end of namespace BlueForce
|
|
|
|
|
2011-10-23 22:11:16 +11:00
|
|
|
namespace Ringworld2 {
|
|
|
|
|
2013-07-16 09:19:19 -04:00
|
|
|
Ringworld2Globals::Ringworld2Globals() {
|
|
|
|
_scannerDialog = new ScannerDialog();
|
2013-10-19 16:02:51 -04:00
|
|
|
_speechSubtitles = SPEECH_TEXT;
|
2013-10-27 16:59:38 +01:00
|
|
|
|
2013-11-10 15:30:24 -05:00
|
|
|
// Register the inner sound objects for each of the global ASoundExt fields.
|
|
|
|
// Normally the ASound constructor would do this, but because they're fields
|
|
|
|
// of the globals, the g_globals reference isn't ready for them to use
|
|
|
|
_sounds.push_back(&_sound1);
|
|
|
|
_sounds.push_back(&_sound2);
|
|
|
|
_sounds.push_back(&_sound3);
|
|
|
|
_sounds.push_back(&_sound4);
|
|
|
|
|
2013-11-11 11:09:54 +01:00
|
|
|
// Initialize fields
|
2013-10-27 16:59:38 +01:00
|
|
|
_stripModifier = 0;
|
|
|
|
_flubMazeArea = 1;
|
|
|
|
_flubMazeEntryDirection = 0;
|
|
|
|
_maze3800SceneNumb = 3800;
|
|
|
|
_landerSuitNumber = 2;
|
|
|
|
_desertStepsRemaining = 5;
|
|
|
|
_desertCorrectDirection = 0;
|
|
|
|
_desertPreviousDirection = 0;
|
|
|
|
_desertWrongDirCtr = -1;
|
|
|
|
_balloonAltitude = 5;
|
|
|
|
_scene1925CurrLevel = 0;
|
|
|
|
_walkwaySceneNumber = 0;
|
2013-11-08 21:34:26 -05:00
|
|
|
_mirandaJailState = 0;
|
2013-10-27 16:59:38 +01:00
|
|
|
_scientistConvIndex = 0;
|
2013-11-08 21:34:26 -05:00
|
|
|
_ductMazePanel1State = 1;
|
|
|
|
_ductMazePanel2State = 1;
|
|
|
|
_ductMazePanel3State = 1;
|
2013-10-27 16:59:38 +01:00
|
|
|
_scene180Mode = -1;
|
|
|
|
_v57709 = 0;
|
|
|
|
_v5780C = 0;
|
2013-12-08 23:40:20 +01:00
|
|
|
_mouseCursorId = 0;
|
2013-10-27 16:59:38 +01:00
|
|
|
_v57810 = 0;
|
2013-10-29 08:03:54 +01:00
|
|
|
|
|
|
|
_fadePaletteFlag = false;
|
|
|
|
_insetUp = 0;
|
|
|
|
_frameEdgeColor = 2;
|
|
|
|
_animationCtr = 0;
|
|
|
|
_electromagnetChangeAmount = 0;
|
|
|
|
_electromagnetZoom = 0;
|
2013-11-08 21:18:30 -05:00
|
|
|
_tractorField = false;
|
|
|
|
_cableAttached = 0;
|
2013-10-29 08:03:54 +01:00
|
|
|
_foodCount = 0;
|
|
|
|
_rimLocation = 0;
|
|
|
|
_rimTransportLocation = 0;
|
2013-12-02 07:20:53 +01:00
|
|
|
|
|
|
|
_debugCardGame = false;
|
2013-07-16 09:19:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
Ringworld2Globals::~Ringworld2Globals() {
|
|
|
|
delete _scannerDialog;
|
|
|
|
}
|
|
|
|
|
2011-10-23 22:11:16 +11:00
|
|
|
void Ringworld2Globals::reset() {
|
|
|
|
Globals::reset();
|
2012-09-26 04:17:31 +02:00
|
|
|
|
2013-07-16 09:19:19 -04:00
|
|
|
if (!_scannerDialog)
|
|
|
|
_scannerDialog = new ScannerDialog();
|
|
|
|
|
2013-09-01 10:03:30 -04:00
|
|
|
// Default to Quinn as the active character
|
|
|
|
T2_GLOBALS._player._characterIndex = R2_QUINN;
|
|
|
|
|
2011-10-23 22:11:16 +11:00
|
|
|
// Reset the inventory
|
|
|
|
R2_INVENTORY.reset();
|
|
|
|
T2_GLOBALS._uiElements.updateInventory();
|
|
|
|
T2_GLOBALS._uiElements._active = false;
|
2011-10-30 19:47:51 +11:00
|
|
|
|
2013-07-11 09:05:50 -04:00
|
|
|
// Set the screen to track the player
|
|
|
|
_scrollFollower = &_player;
|
|
|
|
|
2011-10-30 19:47:51 +11:00
|
|
|
// Reset fields
|
2013-08-21 15:14:40 +02:00
|
|
|
Common::fill(&_fadePaletteMap[0][0], &_fadePaletteMap[9][256], 0);
|
2013-07-20 18:46:55 -04:00
|
|
|
Common::fill(&_paletteMap[0], &_paletteMap[4096], 0);
|
|
|
|
|
|
|
|
_fadePaletteFlag = false;
|
2012-02-26 17:29:45 +11:00
|
|
|
_animationCtr = 0;
|
2013-07-13 17:11:11 -04:00
|
|
|
_electromagnetChangeAmount = 0;
|
|
|
|
_electromagnetZoom = 0;
|
2013-11-08 21:18:30 -05:00
|
|
|
_tractorField = false;
|
|
|
|
_cableAttached = 0;
|
2013-08-18 19:46:02 +02:00
|
|
|
_foodCount = 0;
|
2013-09-08 14:50:21 -04:00
|
|
|
_rimLocation = 0;
|
|
|
|
_rimTransportLocation = 0;
|
2013-10-27 16:59:38 +01:00
|
|
|
_stripModifier = 0;
|
2013-09-10 20:25:22 -04:00
|
|
|
_spillLocation[0] = 0;
|
|
|
|
_spillLocation[1] = 3;
|
|
|
|
_spillLocation[R2_SEEKER] = 5;
|
|
|
|
_spillLocation[3] = 1;
|
|
|
|
_spillLocation[4] = 2;
|
|
|
|
_spillLocation[5] = 5;
|
|
|
|
_spillLocation[6] = 9;
|
|
|
|
_spillLocation[7] = 14;
|
|
|
|
_spillLocation[8] = 15;
|
|
|
|
_spillLocation[9] = 18;
|
|
|
|
_spillLocation[10] = 20;
|
|
|
|
_spillLocation[11] = 25;
|
|
|
|
_spillLocation[12] = 27;
|
|
|
|
_spillLocation[13] = 31;
|
2012-01-10 20:10:46 +01:00
|
|
|
|
2013-11-11 11:09:54 +01:00
|
|
|
// Initialize the vampire data within the Flub maze
|
2012-01-25 22:08:40 +01:00
|
|
|
for (int i = 0; i < 18; i++) {
|
2013-09-20 22:21:58 -04:00
|
|
|
_vampireData[i]._isAlive = true;
|
|
|
|
_vampireData[i]._position = Common::Point();
|
2012-01-25 22:08:40 +01:00
|
|
|
}
|
2013-09-21 22:27:10 -04:00
|
|
|
_vampireData[0]._shotsRequired = 1;
|
|
|
|
_vampireData[1]._shotsRequired = 2;
|
|
|
|
_vampireData[2]._shotsRequired = 2;
|
|
|
|
_vampireData[3]._shotsRequired = 3;
|
|
|
|
_vampireData[4]._shotsRequired = 2;
|
|
|
|
_vampireData[5]._shotsRequired = 2;
|
|
|
|
_vampireData[6]._shotsRequired = 3;
|
|
|
|
_vampireData[7]._shotsRequired = 1;
|
|
|
|
_vampireData[8]._shotsRequired = 1;
|
|
|
|
_vampireData[9]._shotsRequired = 3;
|
|
|
|
_vampireData[10]._shotsRequired = 3;
|
|
|
|
_vampireData[11]._shotsRequired = 1;
|
|
|
|
_vampireData[12]._shotsRequired = 2;
|
|
|
|
_vampireData[13]._shotsRequired = 3;
|
|
|
|
_vampireData[14]._shotsRequired = 2;
|
|
|
|
_vampireData[15]._shotsRequired = 3;
|
|
|
|
_vampireData[16]._shotsRequired = 1;
|
|
|
|
_vampireData[17]._shotsRequired = 1;
|
2012-01-25 22:08:40 +01:00
|
|
|
|
2013-10-27 16:59:38 +01:00
|
|
|
_maze3800SceneNumb = 3800;
|
2013-08-18 15:11:10 -04:00
|
|
|
_landerSuitNumber = 2;
|
2013-09-20 08:27:54 -04:00
|
|
|
_flubMazeArea = 1;
|
|
|
|
_flubMazeEntryDirection = 0;
|
2013-09-15 23:25:17 -04:00
|
|
|
_desertStepsRemaining = 5;
|
|
|
|
_desertCorrectDirection = 0;
|
|
|
|
_desertPreviousDirection = 0;
|
2012-01-04 15:04:55 +01:00
|
|
|
for (int i = 0; i < 1000; i++)
|
2013-09-15 23:25:17 -04:00
|
|
|
_desertMovements[i] = 0;
|
|
|
|
_desertWrongDirCtr = -1;
|
2013-09-15 14:54:47 -04:00
|
|
|
_balloonAltitude = 5;
|
2012-01-22 11:50:15 +01:00
|
|
|
_scene1925CurrLevel = 0; //_v56A9C
|
2013-09-24 22:02:12 -04:00
|
|
|
_walkwaySceneNumber = 0;
|
2013-11-08 21:34:26 -05:00
|
|
|
_mirandaJailState = 0;
|
2013-09-22 22:24:08 -04:00
|
|
|
_scientistConvIndex = 0;
|
|
|
|
_ventCellPos = Common::Point(60, 660);
|
2013-11-08 21:34:26 -05:00
|
|
|
_ductMazePanel1State = 1;
|
|
|
|
_ductMazePanel2State = 1;
|
|
|
|
_ductMazePanel3State = 1;
|
2012-02-05 13:20:18 +11:00
|
|
|
_scene180Mode = -1;
|
2012-02-09 22:59:33 +01:00
|
|
|
_v57709 = 0;
|
|
|
|
_v5780C = 0;
|
2013-12-08 23:40:20 +01:00
|
|
|
_mouseCursorId = 0;
|
2012-02-09 22:59:33 +01:00
|
|
|
_v57810 = 0;
|
2013-08-24 15:38:51 -04:00
|
|
|
_s1550PlayerArea[R2_QUINN] = Common::Point(27, 4);
|
|
|
|
_s1550PlayerArea[R2_SEEKER] = Common::Point(27, 4);
|
2013-07-16 23:20:58 -04:00
|
|
|
Common::fill(&_scannerFrequencies[0], &_scannerFrequencies[MAX_CHARACTERS], 1);
|
2011-11-16 19:48:52 +11:00
|
|
|
_insetUp = 0;
|
2013-08-22 23:37:55 +02:00
|
|
|
_frameEdgeColor = 2;
|
2011-11-17 22:03:00 +11:00
|
|
|
Common::fill(&_stripManager_lookupList[0], &_stripManager_lookupList[12], 0);
|
|
|
|
_stripManager_lookupList[0] = 1;
|
|
|
|
_stripManager_lookupList[1] = 1;
|
|
|
|
_stripManager_lookupList[2] = 1;
|
|
|
|
_stripManager_lookupList[3] = 1;
|
|
|
|
_stripManager_lookupList[4] = 1;
|
|
|
|
_stripManager_lookupList[5] = 1;
|
|
|
|
_stripManager_lookupList[8] = 1;
|
|
|
|
_stripManager_lookupList[9] = 1;
|
|
|
|
_stripManager_lookupList[10] = 1;
|
|
|
|
_stripManager_lookupList[11] = 1;
|
|
|
|
|
2013-08-24 20:45:18 -04:00
|
|
|
// Reset junk/component data in scene 1550
|
|
|
|
Common::copy(&scene1550JunkLocationsDefault[0], &scene1550JunkLocationsDefault[508],
|
|
|
|
&_scene1550JunkLocations[0]);
|
|
|
|
|
2011-11-16 19:48:52 +11:00
|
|
|
// Reset fields stored in the player class
|
2011-12-11 17:46:58 +11:00
|
|
|
_player._characterIndex = R2_QUINN;
|
2013-09-10 20:25:22 -04:00
|
|
|
_player._characterScene[R2_QUINN] = 100;
|
|
|
|
_player._characterScene[R2_SEEKER] = 300;
|
2013-09-26 10:11:02 +03:00
|
|
|
_player._characterScene[R2_MIRANDA] = 300;
|
2013-12-02 07:20:53 +01:00
|
|
|
|
|
|
|
_debugCardGame = false;
|
2011-10-23 22:11:16 +11:00
|
|
|
}
|
|
|
|
|
2011-10-24 21:45:08 +11:00
|
|
|
void Ringworld2Globals::synchronize(Serializer &s) {
|
|
|
|
TsAGE2Globals::synchronize(s);
|
2011-11-17 22:03:00 +11:00
|
|
|
int i;
|
2011-10-30 19:47:51 +11:00
|
|
|
|
2012-02-26 17:29:45 +11:00
|
|
|
s.syncAsSint16LE(_animationCtr);
|
2013-07-13 17:11:11 -04:00
|
|
|
s.syncAsSint16LE(_electromagnetChangeAmount);
|
|
|
|
s.syncAsSint16LE(_electromagnetZoom);
|
2013-11-08 21:18:30 -05:00
|
|
|
s.syncAsSint16LE(_tractorField);
|
|
|
|
s.syncAsSint16LE(_cableAttached);
|
2013-08-18 19:46:02 +02:00
|
|
|
s.syncAsSint16LE(_foodCount);
|
2013-09-08 14:50:21 -04:00
|
|
|
s.syncAsSint32LE(_rimLocation);
|
|
|
|
s.syncAsSint16LE(_rimTransportLocation);
|
2013-08-18 15:11:10 -04:00
|
|
|
s.syncAsSint16LE(_landerSuitNumber);
|
2013-10-27 16:59:38 +01:00
|
|
|
s.syncAsSint16LE(_maze3800SceneNumb);
|
2013-09-15 23:25:17 -04:00
|
|
|
s.syncAsSint16LE(_desertWrongDirCtr);
|
2012-01-22 11:50:15 +01:00
|
|
|
s.syncAsSint16LE(_scene1925CurrLevel); // _v56A9C
|
2013-09-24 22:02:12 -04:00
|
|
|
s.syncAsSint16LE(_walkwaySceneNumber);
|
2013-09-22 22:24:08 -04:00
|
|
|
s.syncAsSint16LE(_ventCellPos.x);
|
|
|
|
s.syncAsSint16LE(_ventCellPos.y);
|
2012-02-05 13:20:18 +11:00
|
|
|
s.syncAsSint16LE(_scene180Mode);
|
2012-02-09 22:59:33 +01:00
|
|
|
s.syncAsSint16LE(_v57709);
|
|
|
|
s.syncAsSint16LE(_v5780C);
|
2013-12-08 23:40:20 +01:00
|
|
|
s.syncAsSint16LE(_mouseCursorId);
|
2012-02-09 22:59:33 +01:00
|
|
|
s.syncAsSint16LE(_v57810);
|
2011-11-17 22:03:00 +11:00
|
|
|
|
2013-08-24 15:38:51 -04:00
|
|
|
s.syncAsByte(_s1550PlayerArea[R2_QUINN].x);
|
|
|
|
s.syncAsByte(_s1550PlayerArea[R2_SEEKER].x);
|
|
|
|
s.syncAsByte(_s1550PlayerArea[R2_QUINN].y);
|
|
|
|
s.syncAsByte(_s1550PlayerArea[R2_SEEKER].y);
|
2012-01-13 16:04:09 +01:00
|
|
|
|
2011-11-17 22:03:00 +11:00
|
|
|
for (i = 0; i < MAX_CHARACTERS; ++i)
|
2013-07-16 23:20:58 -04:00
|
|
|
s.syncAsByte(_scannerFrequencies[i]);
|
2012-09-26 04:17:31 +02:00
|
|
|
|
2013-10-27 16:59:38 +01:00
|
|
|
s.syncAsByte(_stripModifier);
|
2013-09-20 08:27:54 -04:00
|
|
|
s.syncAsByte(_flubMazeArea);
|
|
|
|
s.syncAsByte(_flubMazeEntryDirection);
|
2013-09-15 23:25:17 -04:00
|
|
|
s.syncAsByte(_desertStepsRemaining);
|
|
|
|
s.syncAsByte(_desertCorrectDirection);
|
|
|
|
s.syncAsByte(_desertPreviousDirection);
|
2013-11-08 21:34:26 -05:00
|
|
|
s.syncAsByte(_mirandaJailState);
|
2013-09-22 22:24:08 -04:00
|
|
|
s.syncAsByte(_scientistConvIndex);
|
2013-11-08 21:34:26 -05:00
|
|
|
s.syncAsByte(_ductMazePanel1State);
|
|
|
|
s.syncAsByte(_ductMazePanel2State);
|
|
|
|
s.syncAsByte(_ductMazePanel3State);
|
2011-12-22 20:23:48 +01:00
|
|
|
|
2011-11-24 08:17:37 +01:00
|
|
|
for (i = 0; i < 14; ++i)
|
2013-09-10 20:25:22 -04:00
|
|
|
s.syncAsByte(_spillLocation[i]);
|
2012-01-04 15:04:55 +01:00
|
|
|
for (i = 0; i < 1000; ++i)
|
2013-09-15 23:25:17 -04:00
|
|
|
s.syncAsByte(_desertMovements[i]);
|
2013-09-15 14:54:47 -04:00
|
|
|
s.syncAsByte(_balloonAltitude);
|
2011-11-17 22:03:00 +11:00
|
|
|
for (i = 0; i < 12; ++i)
|
|
|
|
s.syncAsByte(_stripManager_lookupList[i]);
|
|
|
|
|
2011-11-16 19:48:52 +11:00
|
|
|
s.syncAsSint16LE(_insetUp);
|
2013-08-22 23:37:55 +02:00
|
|
|
s.syncAsByte(_frameEdgeColor);
|
2013-08-24 20:45:18 -04:00
|
|
|
|
2013-08-25 22:55:42 +02:00
|
|
|
for (i = 0; i < 508; i += 4)
|
2013-08-24 20:45:18 -04:00
|
|
|
s.syncAsByte(_scene1550JunkLocations[i + 2]);
|
2013-09-13 21:41:09 -04:00
|
|
|
|
|
|
|
s.syncAsSint16LE(_balloonPosition.x);
|
|
|
|
s.syncAsSint16LE(_balloonPosition.y);
|
2013-09-20 22:21:58 -04:00
|
|
|
|
2013-11-02 12:14:09 +01:00
|
|
|
// Synchronize Flub maze vampire data
|
2013-09-20 22:21:58 -04:00
|
|
|
for (i = 0; i < 18; ++i) {
|
|
|
|
s.syncAsSint16LE(_vampireData[i]._isAlive);
|
2013-09-21 22:27:10 -04:00
|
|
|
s.syncAsSint16LE(_vampireData[i]._shotsRequired);
|
2013-09-20 22:21:58 -04:00
|
|
|
s.syncAsSint16LE(_vampireData[i]._position.x);
|
|
|
|
s.syncAsSint16LE(_vampireData[i]._position.y);
|
|
|
|
}
|
2011-10-24 21:45:08 +11:00
|
|
|
}
|
2011-10-23 22:11:16 +11:00
|
|
|
|
|
|
|
} // end of namespace Ringworld2
|
|
|
|
|
2011-08-15 20:47:59 +10:00
|
|
|
} // end of namespace TsAGE
|