HUGO: Remove extra spaces at end of lines
This commit is contained in:
parent
81a3538706
commit
2ad969bcac
14 changed files with 117 additions and 117 deletions
|
@ -665,7 +665,7 @@ bool Screen::isInY(const int16 y, const rect_t *rect) const {
|
||||||
* Check if two rectangles are overlapping
|
* Check if two rectangles are overlapping
|
||||||
*/
|
*/
|
||||||
bool Screen::isOverlapping(const rect_t *rectA, const rect_t *rectB) const {
|
bool Screen::isOverlapping(const rect_t *rectA, const rect_t *rectB) const {
|
||||||
return (isInX(rectA->x, rectB) || isInX(rectA->x + rectA->dx, rectB) || isInX(rectB->x, rectA) || isInX(rectB->x + rectB->dx, rectA)) &&
|
return (isInX(rectA->x, rectB) || isInX(rectA->x + rectA->dx, rectB) || isInX(rectB->x, rectA) || isInX(rectB->x + rectB->dx, rectA)) &&
|
||||||
(isInY(rectA->y, rectB) || isInY(rectA->y + rectA->dy, rectB) || isInY(rectB->y, rectA) || isInY(rectB->y + rectB->dy, rectA));
|
(isInY(rectA->y, rectB) || isInY(rectA->y + rectA->dy, rectB) || isInY(rectB->y, rectA) || isInY(rectB->y + rectB->dy, rectA));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -685,7 +685,7 @@ void Screen::drawBoundaries() {
|
||||||
object_t *obj = &_vm->_object->_objects[i]; // Get pointer to object
|
object_t *obj = &_vm->_object->_objects[i]; // Get pointer to object
|
||||||
if (obj->screenIndex == *_vm->_screen_p) {
|
if (obj->screenIndex == *_vm->_screen_p) {
|
||||||
if ((obj->currImagePtr != 0) && (obj->cycling != kCycleInvisible))
|
if ((obj->currImagePtr != 0) && (obj->cycling != kCycleInvisible))
|
||||||
drawRectangle(false, obj->x + obj->currImagePtr->x1, obj->y + obj->currImagePtr->y1,
|
drawRectangle(false, obj->x + obj->currImagePtr->x1, obj->y + obj->currImagePtr->y1,
|
||||||
obj->x + obj->currImagePtr->x2, obj->y + obj->currImagePtr->y2, _TLIGHTGREEN);
|
obj->x + obj->currImagePtr->x2, obj->y + obj->currImagePtr->y2, _TLIGHTGREEN);
|
||||||
else if ((obj->currImagePtr == 0) && (obj->vxPath != 0) && !obj->carriedFl)
|
else if ((obj->currImagePtr == 0) && (obj->vxPath != 0) && !obj->carriedFl)
|
||||||
drawRectangle(false, obj->oldx, obj->oldy, obj->oldx + obj->vxPath, obj->oldy + obj->vyPath, _TBRIGHTWHITE);
|
drawRectangle(false, obj->oldx, obj->oldy, obj->oldx + obj->vxPath, obj->oldy + obj->vyPath, _TBRIGHTWHITE);
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
namespace Hugo {
|
namespace Hugo {
|
||||||
FileManager::FileManager(HugoEngine *vm) : _vm(vm) {
|
FileManager::FileManager(HugoEngine *vm) : _vm(vm) {
|
||||||
has_read_header = false;
|
has_read_header = false;
|
||||||
firstUIFFl = true;
|
firstUIFFl = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
FileManager::~FileManager() {
|
FileManager::~FileManager() {
|
||||||
|
@ -57,28 +57,28 @@ FileManager::~FileManager() {
|
||||||
/**
|
/**
|
||||||
* Name scenery and objects picture databases
|
* Name scenery and objects picture databases
|
||||||
*/
|
*/
|
||||||
const char *FileManager::getBootFilename() const {
|
const char *FileManager::getBootFilename() const {
|
||||||
return "HUGO.BSF";
|
return "HUGO.BSF";
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *FileManager::getObjectFilename() const {
|
const char *FileManager::getObjectFilename() const {
|
||||||
return "objects.dat";
|
return "objects.dat";
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *FileManager::getSceneryFilename() const {
|
const char *FileManager::getSceneryFilename() const {
|
||||||
return "scenery.dat";
|
return "scenery.dat";
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *FileManager::getSoundFilename() const {
|
const char *FileManager::getSoundFilename() const {
|
||||||
return "sounds.dat";
|
return "sounds.dat";
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *FileManager::getStringFilename() const {
|
const char *FileManager::getStringFilename() const {
|
||||||
return "strings.dat";
|
return "strings.dat";
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *FileManager::getUifFilename() const {
|
const char *FileManager::getUifFilename() const {
|
||||||
return "uif.dat";
|
return "uif.dat";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -50,7 +50,7 @@ namespace Hugo {
|
||||||
|
|
||||||
HugoEngine *HugoEngine::s_Engine = 0;
|
HugoEngine *HugoEngine::s_Engine = 0;
|
||||||
|
|
||||||
maze_t _maze; // Default to not in maze
|
maze_t _maze; // Default to not in maze
|
||||||
hugo_boot_t _boot; // Boot info structure file
|
hugo_boot_t _boot; // Boot info structure file
|
||||||
|
|
||||||
HugoEngine::HugoEngine(OSystem *syst, const HugoGameDescription *gd) : Engine(syst), _gameDescription(gd),
|
HugoEngine::HugoEngine(OSystem *syst, const HugoGameDescription *gd) : Engine(syst), _gameDescription(gd),
|
||||||
|
@ -107,8 +107,8 @@ HugoEngine::~HugoEngine() {
|
||||||
delete _rnd;
|
delete _rnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
GUI::Debugger *HugoEngine::getDebugger() {
|
GUI::Debugger *HugoEngine::getDebugger() {
|
||||||
return _console;
|
return _console;
|
||||||
}
|
}
|
||||||
|
|
||||||
status_t &HugoEngine::getGameStatus() {
|
status_t &HugoEngine::getGameStatus() {
|
||||||
|
@ -147,8 +147,8 @@ bool HugoEngine::hasFeature(EngineFeature f) const {
|
||||||
return (f == kSupportsRTL) || (f == kSupportsLoadingDuringRuntime) || (f == kSupportsSavingDuringRuntime);
|
return (f == kSupportsRTL) || (f == kSupportsLoadingDuringRuntime) || (f == kSupportsSavingDuringRuntime);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *HugoEngine::getCopyrightString() const {
|
const char *HugoEngine::getCopyrightString() const {
|
||||||
return "Copyright 1989-1997 David P Gray, All Rights Reserved.";
|
return "Copyright 1989-1997 David P Gray, All Rights Reserved.";
|
||||||
}
|
}
|
||||||
|
|
||||||
GameType HugoEngine::getGameType() const {
|
GameType HugoEngine::getGameType() const {
|
||||||
|
|
|
@ -48,8 +48,8 @@ IntroHandler::IntroHandler(HugoEngine *vm) : _vm(vm), _introX(0), _introY(0) {
|
||||||
IntroHandler::~IntroHandler() {
|
IntroHandler::~IntroHandler() {
|
||||||
}
|
}
|
||||||
|
|
||||||
byte IntroHandler::getIntroSize() const {
|
byte IntroHandler::getIntroSize() const {
|
||||||
return _introXSize;
|
return _introXSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -54,24 +54,24 @@ InventoryHandler::InventoryHandler(HugoEngine *vm) : _vm(vm), _invent(0) {
|
||||||
_maxInvent = 0;
|
_maxInvent = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InventoryHandler::setInventoryObjId(int16 objId) {
|
void InventoryHandler::setInventoryObjId(int16 objId) {
|
||||||
_inventoryObjId = objId;
|
_inventoryObjId = objId;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InventoryHandler::setInventoryState(istate_t state) {
|
void InventoryHandler::setInventoryState(istate_t state) {
|
||||||
_inventoryState = state;
|
_inventoryState = state;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InventoryHandler::freeInvent() {
|
void InventoryHandler::freeInvent() {
|
||||||
free(_invent);
|
free(_invent);
|
||||||
}
|
}
|
||||||
|
|
||||||
int16 InventoryHandler::getInventoryObjId() const {
|
int16 InventoryHandler::getInventoryObjId() const {
|
||||||
return _inventoryObjId;
|
return _inventoryObjId;
|
||||||
}
|
}
|
||||||
|
|
||||||
istate_t InventoryHandler::getInventoryState() const {
|
istate_t InventoryHandler::getInventoryState() const {
|
||||||
return _inventoryState;
|
return _inventoryState;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -109,7 +109,7 @@ void TopMenu::reflowLayout() {
|
||||||
_inventButton->resize(x * scale, y * scale, kButtonWidth * scale, kButtonHeight * scale);
|
_inventButton->resize(x * scale, y * scale, kButtonWidth * scale, kButtonHeight * scale);
|
||||||
x += kButtonWidth + kButtonPad;
|
x += kButtonWidth + kButtonPad;
|
||||||
|
|
||||||
// Set the graphics to the 'on' buttons, except for the variable ones
|
// Set the graphics to the 'on' buttons, except for the variable ones
|
||||||
_whatButton->setGfx(arrayBmp[4 * kMenuWhat + scale - 1]);
|
_whatButton->setGfx(arrayBmp[4 * kMenuWhat + scale - 1]);
|
||||||
_musicButton->setGfx(arrayBmp[4 * kMenuMusic + scale - 1 + ((_vm->_config.musicFl) ? 0 : 2)]);
|
_musicButton->setGfx(arrayBmp[4 * kMenuMusic + scale - 1 + ((_vm->_config.musicFl) ? 0 : 2)]);
|
||||||
_soundFXButton->setGfx(arrayBmp[4 * kMenuSoundFX + scale - 1 + ((_vm->_config.soundFl) ? 0 : 2)]);
|
_soundFXButton->setGfx(arrayBmp[4 * kMenuSoundFX + scale - 1 + ((_vm->_config.soundFl) ? 0 : 2)]);
|
||||||
|
@ -129,7 +129,7 @@ void TopMenu::loadBmpArr(Common::SeekableReadStream &in) {
|
||||||
for (int i = 0; i < arraySize; i++) {
|
for (int i = 0; i < arraySize; i++) {
|
||||||
uint16 bmpSize = in.readUint16BE();
|
uint16 bmpSize = in.readUint16BE();
|
||||||
uint32 filPos = in.pos();
|
uint32 filPos = in.pos();
|
||||||
Common::SeekableSubReadStream stream(&in, filPos, filPos + bmpSize);
|
Common::SeekableSubReadStream stream(&in, filPos, filPos + bmpSize);
|
||||||
arrayBmp[i * 2] = Graphics::ImageDecoder::loadFile(stream, g_system->getOverlayFormat());
|
arrayBmp[i * 2] = Graphics::ImageDecoder::loadFile(stream, g_system->getOverlayFormat());
|
||||||
arrayBmp[i * 2 + 1] = new Graphics::Surface();
|
arrayBmp[i * 2 + 1] = new Graphics::Surface();
|
||||||
arrayBmp[i * 2 + 1]->create(arrayBmp[i * 2]->w * 2, arrayBmp[i * 2]->h * 2, arrayBmp[i * 2]->bytesPerPixel);
|
arrayBmp[i * 2 + 1]->create(arrayBmp[i * 2]->w * 2, arrayBmp[i * 2]->h * 2, arrayBmp[i * 2]->bytesPerPixel);
|
||||||
|
|
|
@ -55,56 +55,56 @@ MouseHandler::MouseHandler(HugoEngine *vm) : _vm(vm) {
|
||||||
_mouseY = kYPix / 2;
|
_mouseY = kYPix / 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseHandler::resetLeftButton() {
|
void MouseHandler::resetLeftButton() {
|
||||||
_leftButtonFl = false;
|
_leftButtonFl = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseHandler::resetRightButton() {
|
void MouseHandler::resetRightButton() {
|
||||||
_rightButtonFl = false;
|
_rightButtonFl = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseHandler::setLeftButton() {
|
void MouseHandler::setLeftButton() {
|
||||||
_leftButtonFl = true;
|
_leftButtonFl = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseHandler::setRightButton() {
|
void MouseHandler::setRightButton() {
|
||||||
_rightButtonFl = true;
|
_rightButtonFl = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseHandler::setJumpExitFl(bool fl) {
|
void MouseHandler::setJumpExitFl(bool fl) {
|
||||||
_jumpExitFl = fl;
|
_jumpExitFl = fl;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseHandler::setMouseX(int x) {
|
void MouseHandler::setMouseX(int x) {
|
||||||
_mouseX = x;
|
_mouseX = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseHandler::setMouseY(int y) {
|
void MouseHandler::setMouseY(int y) {
|
||||||
_mouseY = y;
|
_mouseY = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MouseHandler::freeHotspots() {
|
void MouseHandler::freeHotspots() {
|
||||||
free(_hotspots);
|
free(_hotspots);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MouseHandler::getJumpExitFl() const {
|
bool MouseHandler::getJumpExitFl() const {
|
||||||
return _jumpExitFl;
|
return _jumpExitFl;
|
||||||
}
|
}
|
||||||
|
|
||||||
int MouseHandler::getMouseX() const {
|
int MouseHandler::getMouseX() const {
|
||||||
return _mouseX;
|
return _mouseX;
|
||||||
}
|
}
|
||||||
|
|
||||||
int MouseHandler::getMouseY() const {
|
int MouseHandler::getMouseY() const {
|
||||||
return _mouseY;
|
return _mouseY;
|
||||||
}
|
}
|
||||||
|
|
||||||
int16 MouseHandler::getDirection(const int16 hotspotId) const {
|
int16 MouseHandler::getDirection(const int16 hotspotId) const {
|
||||||
return _hotspots[hotspotId].direction;
|
return _hotspots[hotspotId].direction;
|
||||||
}
|
}
|
||||||
|
|
||||||
int16 MouseHandler::getHotspotActIndex(const int16 hotspotId) const {
|
int16 MouseHandler::getHotspotActIndex(const int16 hotspotId) const {
|
||||||
return _hotspots[hotspotId].actIndex;
|
return _hotspots[hotspotId].actIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -61,20 +61,20 @@ ObjectHandler::ObjectHandler(HugoEngine *vm) : _vm(vm), _objects(0), _uses(0) {
|
||||||
ObjectHandler::~ObjectHandler() {
|
ObjectHandler::~ObjectHandler() {
|
||||||
}
|
}
|
||||||
|
|
||||||
byte ObjectHandler::getBoundaryOverlay(uint16 index) const {
|
byte ObjectHandler::getBoundaryOverlay(uint16 index) const {
|
||||||
return _boundary[index];
|
return _boundary[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
byte ObjectHandler::getObjectBoundary(uint16 index) const {
|
byte ObjectHandler::getObjectBoundary(uint16 index) const {
|
||||||
return _objBound[index];
|
return _objBound[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
byte ObjectHandler::getBaseBoundary(uint16 index) const {
|
byte ObjectHandler::getBaseBoundary(uint16 index) const {
|
||||||
return _ovlBase[index];
|
return _ovlBase[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
byte ObjectHandler::getFirstOverlay(uint16 index) const {
|
byte ObjectHandler::getFirstOverlay(uint16 index) const {
|
||||||
return _overlay[index];
|
return _overlay[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ObjectHandler::isCarried(int objIndex) const {
|
bool ObjectHandler::isCarried(int objIndex) const {
|
||||||
|
|
|
@ -109,7 +109,7 @@ protected:
|
||||||
void restoreSeq(object_t *obj);
|
void restoreSeq(object_t *obj);
|
||||||
|
|
||||||
inline bool checkBoundary(int16 x, int16 y);
|
inline bool checkBoundary(int16 x, int16 y);
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline int sign(T a) { if ( a < 0) return -1; else return 1; }
|
inline int sign(T a) { if ( a < 0) return -1; else return 1; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -64,8 +64,8 @@ Parser::Parser(HugoEngine *vm) : _vm(vm), _putIndex(0), _getIndex(0), _arrayReqs
|
||||||
Parser::~Parser() {
|
Parser::~Parser() {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16 Parser::getCmdDefaultVerbIdx(const uint16 index) const {
|
uint16 Parser::getCmdDefaultVerbIdx(const uint16 index) const {
|
||||||
return _cmdList[index][0].verbIndex;
|
return _cmdList[index][0].verbIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -50,11 +50,11 @@ Route::Route(HugoEngine *vm) : _vm(vm) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Route::resetRoute() {
|
void Route::resetRoute() {
|
||||||
_routeIndex = -1;
|
_routeIndex = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int16 Route::getRouteIndex() const {
|
int16 Route::getRouteIndex() const {
|
||||||
return _routeIndex;
|
return _routeIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -133,7 +133,7 @@ uint32 Scheduler::getDosTicks(const bool updateFl) {
|
||||||
if (_oldTime == 0)
|
if (_oldTime == 0)
|
||||||
_oldTime = (uint32) floor((double) (g_system->getMillis() * _vm->getTPS() / 1000));
|
_oldTime = (uint32) floor((double) (g_system->getMillis() * _vm->getTPS() / 1000));
|
||||||
// Calculate current wall time in ticks
|
// Calculate current wall time in ticks
|
||||||
t_now = g_system->getMillis() * _vm->getTPS() / 1000 ;
|
t_now = g_system->getMillis() * _vm->getTPS() / 1000;
|
||||||
|
|
||||||
if ((t_now - _oldTime) > 0) {
|
if ((t_now - _oldTime) > 0) {
|
||||||
_oldTime = t_now;
|
_oldTime = t_now;
|
||||||
|
@ -574,7 +574,7 @@ void Scheduler::loadActListArr(Common::ReadStream &in) {
|
||||||
} else {
|
} else {
|
||||||
readAct(in, tmpAct);
|
readAct(in, tmpAct);
|
||||||
if (tmpAct.a0.actType == PROMPT)
|
if (tmpAct.a0.actType == PROMPT)
|
||||||
free(tmpAct.a3.responsePtr);
|
free(tmpAct.a3.responsePtr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -725,7 +725,7 @@ void Scheduler::saveEvents(Common::WriteStream *f) {
|
||||||
f->write(saveEventArr, sizeof(saveEventArr));
|
f->write(saveEventArr, sizeof(saveEventArr));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Restore the action data from file with handle f
|
* Restore the action data from file with handle f
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -56,35 +56,35 @@ MidiPlayer::MidiPlayer(MidiDriver *driver)
|
||||||
_isLooping = false;
|
_isLooping = false;
|
||||||
_isPlaying = false;
|
_isPlaying = false;
|
||||||
_paused = false;
|
_paused = false;
|
||||||
_masterVolume = 0;
|
_masterVolume = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
MidiPlayer::~MidiPlayer() {
|
MidiPlayer::~MidiPlayer() {
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MidiPlayer::isPlaying() const {
|
bool MidiPlayer::isPlaying() const {
|
||||||
return _isPlaying;
|
return _isPlaying;
|
||||||
}
|
}
|
||||||
|
|
||||||
int MidiPlayer::getVolume() const {
|
int MidiPlayer::getVolume() const {
|
||||||
return _masterVolume;
|
return _masterVolume;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MidiPlayer::setLooping(bool loop) {
|
void MidiPlayer::setLooping(bool loop) {
|
||||||
_isLooping = loop;
|
_isLooping = loop;
|
||||||
}
|
}
|
||||||
|
|
||||||
MidiChannel *MidiPlayer::allocateChannel() {
|
MidiChannel *MidiPlayer::allocateChannel() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
MidiChannel *MidiPlayer::getPercussionChannel() {
|
MidiChannel *MidiPlayer::getPercussionChannel() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 MidiPlayer::getBaseTempo() {
|
uint32 MidiPlayer::getBaseTempo() {
|
||||||
return _driver ? _driver->getBaseTempo() : 0;
|
return _driver ? _driver->getBaseTempo() : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MidiPlayer::play(uint8 *stream, uint16 size) {
|
void MidiPlayer::play(uint8 *stream, uint16 size) {
|
||||||
|
@ -476,11 +476,11 @@ void SoundHandler::pcspkr_player() {
|
||||||
case 'G':
|
case 'G':
|
||||||
count = pcspkrNotes[*DOSSongPtr - 'A'];
|
count = pcspkrNotes[*DOSSongPtr - 'A'];
|
||||||
switch (DOSSongPtr[1]) { // Check for sharp or flat (#, -)
|
switch (DOSSongPtr[1]) { // Check for sharp or flat (#, -)
|
||||||
case '#':
|
case '#':
|
||||||
count = pcspkrSharps[*DOSSongPtr++ - 'A'];
|
count = pcspkrSharps[*DOSSongPtr++ - 'A'];
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
count = pcspkrFlats[*DOSSongPtr++ - 'A'];
|
count = pcspkrFlats[*DOSSongPtr++ - 'A'];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -29,60 +29,60 @@
|
||||||
|
|
||||||
namespace Hugo {
|
namespace Hugo {
|
||||||
|
|
||||||
TextHandler::TextHandler(HugoEngine *vm) : _vm(vm), _textData(0), _stringtData(0),
|
TextHandler::TextHandler(HugoEngine *vm) : _vm(vm), _textData(0), _stringtData(0),
|
||||||
_textEngine(0), _textIntro(0), _textMouse(0), _textParser(0), _textUtil(0),
|
_textEngine(0), _textIntro(0), _textMouse(0), _textParser(0), _textUtil(0),
|
||||||
_screenNames(0), _arrayNouns(0), _arrayVerbs(0) {
|
_screenNames(0), _arrayNouns(0), _arrayVerbs(0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
TextHandler::~TextHandler() {
|
TextHandler::~TextHandler() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *TextHandler::getNoun(int idx1, int idx2) const {
|
const char *TextHandler::getNoun(int idx1, int idx2) const {
|
||||||
return _arrayNouns[idx1][idx2];
|
return _arrayNouns[idx1][idx2];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *TextHandler::getScreenNames(int screenIndex) const {
|
const char *TextHandler::getScreenNames(int screenIndex) const {
|
||||||
return _screenNames[screenIndex];
|
return _screenNames[screenIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *TextHandler::getStringtData(int stringIndex) const {
|
const char *TextHandler::getStringtData(int stringIndex) const {
|
||||||
return _stringtData[stringIndex];
|
return _stringtData[stringIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *TextHandler::getTextData(int textIndex) const {
|
const char *TextHandler::getTextData(int textIndex) const {
|
||||||
return _textData[textIndex];
|
return _textData[textIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *TextHandler::getTextEngine(int engineIndex) const {
|
const char *TextHandler::getTextEngine(int engineIndex) const {
|
||||||
return _textEngine[engineIndex];
|
return _textEngine[engineIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *TextHandler::getTextIntro(int introIndex) const {
|
const char *TextHandler::getTextIntro(int introIndex) const {
|
||||||
return _textIntro[introIndex];
|
return _textIntro[introIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *TextHandler::getTextMouse(int mouseIndex) const {
|
const char *TextHandler::getTextMouse(int mouseIndex) const {
|
||||||
return _textMouse[mouseIndex];
|
return _textMouse[mouseIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *TextHandler::getTextParser(int parserIndex) const {
|
const char *TextHandler::getTextParser(int parserIndex) const {
|
||||||
return _textParser[parserIndex];
|
return _textParser[parserIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *TextHandler::getTextUtil(int utilIndex) const {
|
const char *TextHandler::getTextUtil(int utilIndex) const {
|
||||||
return _textUtil[utilIndex];
|
return _textUtil[utilIndex];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *TextHandler::getVerb(int idx1, int idx2) const {
|
const char *TextHandler::getVerb(int idx1, int idx2) const {
|
||||||
return _arrayVerbs[idx1][idx2];
|
return _arrayVerbs[idx1][idx2];
|
||||||
}
|
}
|
||||||
|
|
||||||
char **TextHandler::getNounArray(int idx1) const {
|
char **TextHandler::getNounArray(int idx1) const {
|
||||||
return _arrayNouns[idx1];
|
return _arrayNouns[idx1];
|
||||||
}
|
}
|
||||||
|
|
||||||
char **TextHandler::getVerbArray(int idx1) const {
|
char **TextHandler::getVerbArray(int idx1) const {
|
||||||
return _arrayVerbs[idx1];
|
return _arrayVerbs[idx1];
|
||||||
}
|
}
|
||||||
|
|
||||||
char **TextHandler::loadTextsVariante(Common::ReadStream &in, uint16 *arraySize) {
|
char **TextHandler::loadTextsVariante(Common::ReadStream &in, uint16 *arraySize) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue