Prince::PrinceEngine Class Reference

#include <prince.h>

+ Inheritance diagram for Prince::PrinceEngine:
+ Collaboration diagram for Prince::PrinceEngine:

Public Types

enum  HeroId { kMainHero, kSecondHero }
- Public Types inherited from Engine
enum  EngineFeature { kSupportsSubtitleOptions, kSupportsRTL, kSupportsLoadingDuringRuntime, kSupportsSavingDuringRuntime }
 A feature in this context means an ability of the engine which can be either available or not. More...

Public Member Functions

 PrinceEngine (OSystem *syst, const PrinceGameDescription *gameDesc)
 ~PrinceEngine () override
bool scummVMSaveLoadDialog (bool isSave)
bool hasFeature (EngineFeature f) const override
 Determine whether the engine supports the specified feature. More...
void pauseEngineIntern (bool pause) override
 Actual implementation of pauseEngine by subclasses. More...
bool canSaveGameStateCurrently () override
 Indicates whether a game state can be saved. More...
bool canLoadGameStateCurrently () override
 Indicates whether a game state can be loaded. More...
Common::Error saveGameState (int slot, const Common::String &desc, bool isAutosave=false) override
 Save a game state. More...
Common::Error loadGameState (int slot) override
 Load a game state. More...
void playVideo (Common::String videoFilename)
void writeSavegameHeader (Common::OutSaveFile *out, SavegameHeader &header)
void syncGame (Common::SeekableReadStream *readStream, Common::WriteStream *writeStream)
bool loadGame (int slotNumber)
void resetGame ()
void scrollCredits ()
int getGameType () const
const char * getGameId () const
uint32 getFeatures () const
Common::Language getLanguage () const
bool loadLocation (uint16 locationNr)
bool loadAnim (uint16 animNr, bool loop)
bool loadVoice (uint32 textSlot, uint32 sampleSlot, const Common::String &name)
bool loadSample (uint32 sampleSlot, const Common::String &name)
bool loadZoom (byte *zoomBitmap, uint32 dataSize, const char *resourceName)
bool loadShadow (byte *shadowBitmap, uint32 dataSize, const char *resourceName1, const char *resourceName2)
bool loadTrans (byte *transTable, const char *resourceName)
bool loadMobPriority (const char *resourceName)
void loadMobTranslationTexts ()
void setMobTranslationTexts ()
bool loadMusic (int musNumber)
void stopMusic ()
void playSample (uint16 sampleId, uint16 loopType)
void stopSample (uint16 sampleId)
void stopAllSamples ()
void freeSample (uint16 sampleId)
void freeAllSamples ()
void setVoice (uint16 slot, uint32 sampleSlot, uint16 flag)
void changeCursor (uint16 curId)
void printAt (uint32 slot, uint8 color, char *s, uint16 x, uint16 y)
int calcTextLines (const char *s)
int calcTextTime (int numberOfLines)
void correctStringDEU (char *s)
void setShadowScale (int32 shadowScale)
void freeNormAnim (int slot)
void freeAllNormAnims ()
void removeSingleBackAnim (int slot)
void checkMasks (int x1, int y1, int sprWidth, int sprHeight, int z)
void insertMasks (Graphics::Surface *originalRoomSurface)
void showMask (int maskNr, Graphics::Surface *originalRoomSurface)
void clsMasks ()
void grabMap ()
void inventoryFlagChange (bool inventoryState)
bool loadAllInv ()
void rememberScreenInv ()
void prepareInventoryToView ()
void drawInvItems ()
void displayInventory ()
void addInv (int heroId, int item, bool addItemQuiet)
void remInv (int heroId, int item)
void clearInv (int heroId)
void swapInv (int heroId)
void addInvObj ()
void makeInvCursor (int itemNr)
void enableOptions (bool checkType)
void checkOptions ()
void checkInvOptions ()
void openInventoryCheck ()
void leftMouseButton ()
void rightMouseButton ()
void inventoryLeftMouseButton ()
void inventoryRightMouseButton ()
void dialogLeftMouseButton (byte *string, int dialogSelected)
void createDialogBox (int dialogBoxNr)
void dialogRun ()
void talkHero (int slot)
void doTalkAnim (int animNumber, int slot, AnimType animType)
void initZoomIn (int slot)
void initZoomOut (int slot)
void doZoomIn (int slot)
void doZoomOut (int slot)
void freeZoomObject (int slot)
void blackPalette ()
void setPalette (const byte *palette)
int getMob (Common::Array< Mob > &mobList, bool usePriorityList, int posX, int posY)
void makeCurve ()
void getCurve ()
void mouseWeirdo ()
void showPower ()
int drawLine (int x0, int y0, int x1, int y1, int(*plotProc)(int, int, void *), void *data)
bool loadPath (const char *resourceName)
bytemakePath (int heroId, int currX, int currY, int destX, int destY)
void findPoint (int x, int y)
int getPixelAddr (byte *pathBitmap, int x, int y)
void specialPlotInside (int x, int y)
bool tracePath (int x1, int y1, int x2, int y2)
Direction makeDirection (int x1, int y1, int x2, int y2)
void specialPlot (int x, int y)
void specialPlot2 (int x, int y)
void allocCoords2 ()
void freeCoords2 ()
void freeCoords3 ()
void specialPlotInside2 (int x, int y)
void approxPath ()
void freeDirectionTable ()
void scanDirections ()
int scanDirectionsFindNext (byte *coords, int xDiff, int yDiff)
void moveShandria ()
void walkTo ()
void moveRunHero (int heroId, int x, int y, int dir, bool runHeroFlag)
int leftDownDir ()
int leftDir ()
int leftUpDir ()
int rightDownDir ()
int rightDir ()
int rightUpDir ()
int upLeftDir ()
int upDir ()
int upRightDir ()
int downLeftDir ()
int downDir ()
int downRightDir ()
int cpe ()
int checkLeftDownDir ()
int checkLeftDir ()
int checkDownDir ()
int checkUpDir ()
int checkRightDir ()
int checkLeftUpDir ()
int checkRightDownDir ()
int checkRightUpDir ()
- Public Member Functions inherited from Engine
 Engine (OSystem *syst)
virtual ~Engine ()
virtual void initializePath (const Common::FSNode &gamePath)
 Init SearchMan according to the game path. More...
virtual void errorString (const char *buf_input, char *buf_output, int buf_output_size)
 Prepare an error string, which is printed by the error() function. More...
virtual GUI::DebuggergetDebugger ()
 Return the engine's debugger instance, if any. More...
void setDebugger (GUI::Debugger *debugger)
 Sets the engine's debugger. More...
GUI::DebuggergetOrCreateDebugger ()
 Return the engine's debugger instance, or create one if none is present. More...
virtual void syncSoundSettings ()
 Notify the engine that the sound settings in the config manager may have changed and that it hence should adjust any internal volume etc. More...
virtual void flipMute ()
 Flip mute all sound option. More...
virtual Common::String getSaveStateName (int slot) const
 Generates the savegame filename. More...
virtual Common::Error loadGameStream (Common::SeekableReadStream *stream)
 Load a game state. More...
void setGameToLoadSlot (int slot)
 Sets the game slot for a savegame to be loaded after global main menu execution. More...
virtual Common::Error saveGameStream (Common::WriteStream *stream, bool isAutosave=false)
 Save a game state. More...
bool saveGameDialog ()
 Shows the ScummVM save dialog, allowing users to save their game. More...
bool loadGameDialog ()
 Shows the ScummVM Restore dialog, allowing users to load a game. More...
void pauseEngine (bool pause)
 Pause or resume the engine. More...
bool isPaused () const
 Return whether the engine is currently paused or not. More...
void openMainMenuDialog ()
 Run the Global Main Menu Dialog. More...
uint32 getTotalPlayTime () const
 Get the total play time. More...
void setTotalPlayTime (uint32 time=0)
 Set the game time counter to the specified time. More...
Common::TimerManagergetTimerManager ()
Common::EventManagergetEventManager ()
Common::SaveFileManagergetSaveFileManager ()
void checkCD ()
 On some systems, check if the game appears to be run from CD. More...
void handleAutoSave ()
 Checks for whether it's time to do an autosave, and if so, does it. More...
void saveAutosaveIfEnabled ()
 Does an autosave immediately if autosaves are turned on. More...
virtual bool canSaveAutosaveCurrently ()
 Indicates whether an autosave can currently be saved. More...
virtual int getAutosaveSlot () const
 Returns the slot that should be used for autosaves. More...
bool shouldPerformAutoSave (int lastSaveTime)

Static Public Member Functions

static WARN_UNUSED_RESULT bool readSavegameHeader (Common::InSaveFile *in, SavegameHeader &header, bool skipThumbnail=true)
static void plotShadowLinePoint (int x, int y, int color, void *data)
static int plotTraceLine (int x, int y, void *data)
static int plotTracePoint (int x, int y, void *data)
- Static Public Member Functions inherited from Engine
static void quitGame ()
 Request the engine to quit. More...
static bool shouldQuit ()
 Return whether the ENGINE should quit respectively should return to the launcher. More...
static MetaEnginegetMetaEngine ()
static bool warnUserAboutUnsupportedGame ()
 Display a warning to the user that the game is not fully supported. More...

Public Attributes

int32 _creditsDataSize
const PrinceGameDescription_gameDescription
Video::FlicDecoder _flicPlayer
const Graphics::Surface_flcFrameSurface
uint32 _talkTxtSize
uint32 _mobTranslationSize
Text _textSlots [kMaxTexts]
int _mouseFlag
uint32 _currentTime
uint16 _locationNr
uint16 _sceneWidth
int32 _picWindowX
int32 _picWindowY
Image::BitmapDecoder * _roomBmp
uint8 _currentMidi
int16 _scaleValue
int16 _lightX
int16 _lightY
int32 _shadScaleValue
int32 _shadLineLen
Common::Array< DrawNode_drawNodeList
Common::Array< AnimListItem_animList
Common::Array< BackgroundAnim_backAnimList
Common::Array< Anim_normAnimList
Common::Array< Mob_mobList
Common::Array< uint32_mobPriorityList
Common::Array< Mask_maskList
Common::Array< Object * > _objList
Common::RandomSource _randomSource
int _selectedMob
int _selectedItem
int _selectedMode
int _currentPointerNumber
uint32 _invTxtSize
bool _optionsFlag
int _optionEnabled
int _optionsMob
int _optionsX
int _optionsY
int _optionsWidth
int _optionsHeight
int _invOptionsWidth
int _invOptionsHeight
int _optionsStep
int _invOptionsStep
int _optionsNumber
int _invOptionsNumber
int _optionsColor1
int _optionsColor2
bool _showInventoryFlag
int _invExamY
bool _inventoryBackgroundRemember
int _invLineX
int _invLineY
int _invLine
int _invLines
int _invLineW
int _invLineH
int _maxInvW
int _maxInvH
int _invLineSkipX
int _invLineSkipY
int _invX1
int _invY1
int _invWidth
int _invHeight
bool _invCurInside
int _mst_shadow
int _mst_shadow2
int _candleCounter
int _invMaxCount
int _invCounter
uint32 _dialogDatSize
byte_dialogBoxAddr [32]
byte_dialogOptAddr [32]
int _dialogOptLines [4 *32]
int _dialogLines
bool _dialogFlag
int _dialogWidth
int _dialogHeight
int _dialogLineSpace
int _dialogColor1
int _dialogColor2
int _curvPos
int _traceLineLen
bool _traceLineFirstPointFlag
bool _tracePointFirstPointFlag
int _shanLen
int _checkMask
int _checkX
int _checkY
int _rembMask
int _rembX
int _rembY
int _fpX
int _fpY
- Public Attributes inherited from Engine

Static Public Attributes

static const uint8 kMaxTexts = 32
static const int16 kFPS = 15
static const int32 kIntMax = 2147483647
static const int16 kMaxPicWidth = 1280
static const int16 kMaxPicHeight = 480
static const int16 kZoomStep = 4
static const int32 kZoomBitmapLen = kMaxPicHeight / kZoomStep * kMaxPicWidth / kZoomStep
static const int32 kShadowBitmapSize = kMaxPicWidth * kMaxPicHeight / 8
static const int16 kShadowLineArraySize = 2 * 1280 * 4
static const int16 kZoomBitmapWidth = kMaxPicWidth / kZoomStep
static const int16 kZoomBitmapHeight = kMaxPicHeight / kZoomStep
static const int16 kNormalWidth = 640
static const int16 kNormalHeight = 480
static const uint32 kTransTableSize = 256 * 256
static const int kMaxNormAnims = 64
static const int kMaxBackAnims = 64
static const int kMaxObjects = 64
static const int kMaxMobs = 64
static const int16 kMaxInv = 90
static const uint16 kMaxItems = 30
static const uint8 zoomInStep = 8
static const uint8 kFadeStep = 4
static const int16 kCurveLen = 17
static const int kCelStep = 4
static const uint16 kPowerBarPosX = 288
static const uint16 kPowerBarPosY = 430
static const uint8 kPowerBarWidth = 64
static const uint8 kPowerBarHeight = 16
static const uint8 kPowerBarBackgroundColor = 0
static const uint16 kPowerBarGreenPosY = 434
static const uint8 kPowerBarGreenColor1 = 202
static const uint8 kPowerBarGreenColor2 = 235
static const uint8 kPowerBarGreenHeight = 8
static const int16 kPathGridStep = 2
static const uint32 kPathBitmapLen = (kMaxPicHeight / kPathGridStep * kMaxPicWidth / kPathGridStep) / 8
static const int32 kTracePts = 8000
static const int32 kPBW = kMaxPicWidth / 16
static const int kMinDistance = 2500

Protected Member Functions

Common::Error run () override
 Init the engine and start its main loop. More...
- Protected Member Functions inherited from Engine
virtual int runDialog (GUI::Dialog &dialog)

Private Member Functions

bool playNextFLCFrame ()
void keyHandler (Common::Event event)
int checkMob (Graphics::Surface *screen, Common::Array< Mob > &mobList, bool usePriorityList)
void drawScreen ()
void showTexts (Graphics::Surface *screen)
void init ()
void showLogo ()
void showAnim (Anim &anim)
void showNormAnims ()
void setBackAnim (Anim &backAnim)
void showBackAnims ()
void clearBackAnimList ()
bool spriteCheck (int sprWidth, int sprHeight, int destX, int destY)
void showSprite (Graphics::Surface *spriteSurface, int destX, int destY, int destZ)
void showSpriteShadow (Graphics::Surface *shadowSurface, int destX, int destY, int destZ)
void showObjects ()
void showParallax ()
void runDrawNodes ()
void makeShadowTable (int brightness)
void pausePrinceEngine (int fps=kFPS)
uint32 getTextWidth (const char *s)
void debugEngine (const char *s,...)
void mainLoop ()

Static Private Member Functions

static bool compareDrawNodes (DrawNode d1, DrawNode d2)

Private Attributes

uint8 _cursorNr
Audio::RewindableAudioStream_audioStream [kMaxSamples]
Audio::SoundHandle _soundHandle [kMaxSamples]
Common::Array< PScr * > _pscrList
Common::Array< InvItem_allInvList
Common::Array< Mob_invMobList
bool _flicLooped

Static Private Attributes

static const int kMaxSamples = 60

Additional Inherited Members

- Protected Attributes inherited from Engine
const Common::String _targetName

Detailed Description

Definition at line 274 of file prince.h.

Member Enumeration Documentation

◆ HeroId


Definition at line 354 of file prince.h.

Constructor & Destructor Documentation

◆ PrinceEngine()

Prince::PrinceEngine::PrinceEngine ( OSystem syst,
const PrinceGameDescription gameDesc 

Definition at line 69 of file prince.cpp.

◆ ~PrinceEngine()

Prince::PrinceEngine::~PrinceEngine ( )

Definition at line 101 of file prince.cpp.

Member Function Documentation

◆ addInv()

void Prince::PrinceEngine::addInv ( int  heroId,
int  item,
bool  addItemQuiet 

Definition at line 35 of file inventory.cpp.

◆ addInvObj()

void Prince::PrinceEngine::addInvObj ( )

Definition at line 114 of file inventory.cpp.

◆ allocCoords2()

void Prince::PrinceEngine::allocCoords2 ( )

Definition at line 1587 of file walk.cpp.

◆ approxPath()

void Prince::PrinceEngine::approxPath ( )

Definition at line 1200 of file walk.cpp.

◆ blackPalette()

void Prince::PrinceEngine::blackPalette ( )

Definition at line 648 of file draw.cpp.

◆ calcTextLines()

int Prince::PrinceEngine::calcTextLines ( const char *  s)

Definition at line 585 of file prince.cpp.

◆ calcTextTime()

int Prince::PrinceEngine::calcTextTime ( int  numberOfLines)

Definition at line 596 of file prince.cpp.

◆ canLoadGameStateCurrently()

bool Prince::PrinceEngine::canLoadGameStateCurrently ( )

Indicates whether a game state can be loaded.

Reimplemented from Engine.

Definition at line 132 of file saveload.cpp.

◆ canSaveGameStateCurrently()

bool Prince::PrinceEngine::canSaveGameStateCurrently ( )

Indicates whether a game state can be saved.

Reimplemented from Engine.

Definition at line 117 of file saveload.cpp.

◆ changeCursor()

void Prince::PrinceEngine::changeCursor ( uint16  curId)

Definition at line 59 of file cursor.cpp.

◆ checkDownDir()

int Prince::PrinceEngine::checkDownDir ( )

Definition at line 868 of file walk.cpp.

◆ checkInvOptions()

void Prince::PrinceEngine::checkInvOptions ( )

Definition at line 547 of file inventory.cpp.

◆ checkLeftDir()

int Prince::PrinceEngine::checkLeftDir ( )

Definition at line 834 of file walk.cpp.

◆ checkLeftDownDir()

int Prince::PrinceEngine::checkLeftDownDir ( )

Definition at line 797 of file walk.cpp.

◆ checkLeftUpDir()

int Prince::PrinceEngine::checkLeftUpDir ( )

Definition at line 940 of file walk.cpp.

◆ checkMasks()

void Prince::PrinceEngine::checkMasks ( int  x1,
int  y1,
int  sprWidth,
int  sprHeight,
int  z 

Definition at line 64 of file draw.cpp.

◆ checkMob()

int Prince::PrinceEngine::checkMob ( Graphics::Surface screen,
Common::Array< Mob > &  mobList,
bool  usePriorityList 

Definition at line 206 of file mob.cpp.

◆ checkOptions()

void Prince::PrinceEngine::checkOptions ( )

Definition at line 495 of file inventory.cpp.

◆ checkRightDir()

int Prince::PrinceEngine::checkRightDir ( )

Definition at line 906 of file walk.cpp.

◆ checkRightDownDir()

int Prince::PrinceEngine::checkRightDownDir ( )

Definition at line 977 of file walk.cpp.

◆ checkRightUpDir()

int Prince::PrinceEngine::checkRightUpDir ( )

Definition at line 1014 of file walk.cpp.

◆ checkUpDir()

int Prince::PrinceEngine::checkUpDir ( )

Definition at line 887 of file walk.cpp.

◆ clearBackAnimList()

void Prince::PrinceEngine::clearBackAnimList ( )

Definition at line 378 of file draw.cpp.

◆ clearInv()

void Prince::PrinceEngine::clearInv ( int  heroId)

Definition at line 76 of file inventory.cpp.

◆ clsMasks()

void Prince::PrinceEngine::clsMasks ( )

Definition at line 84 of file draw.cpp.

◆ compareDrawNodes()

bool Prince::PrinceEngine::compareDrawNodes ( DrawNode  d1,
DrawNode  d2 

Definition at line 573 of file draw.cpp.

◆ correctStringDEU()

void Prince::PrinceEngine::correctStringDEU ( char *  s)

Definition at line 600 of file prince.cpp.

◆ cpe()

int Prince::PrinceEngine::cpe ( )

Definition at line 720 of file walk.cpp.

◆ createDialogBox()

void Prince::PrinceEngine::createDialogBox ( int  dialogBoxNr)

Definition at line 808 of file prince.cpp.

◆ debugEngine()

void Prince::PrinceEngine::debugEngine ( const char *  s,

Definition at line 58 of file prince.cpp.

◆ dialogLeftMouseButton()

void Prince::PrinceEngine::dialogLeftMouseButton ( byte string,
int  dialogSelected 

Definition at line 931 of file prince.cpp.

◆ dialogRun()

void Prince::PrinceEngine::dialogRun ( )

Definition at line 837 of file prince.cpp.

◆ displayInventory()

void Prince::PrinceEngine::displayInventory ( )

Definition at line 600 of file inventory.cpp.

◆ doTalkAnim()

void Prince::PrinceEngine::doTalkAnim ( int  animNumber,
int  slot,
AnimType  animType 

Definition at line 705 of file draw.cpp.

◆ downDir()

int Prince::PrinceEngine::downDir ( )

Definition at line 648 of file walk.cpp.

◆ downLeftDir()

int Prince::PrinceEngine::downLeftDir ( )

Definition at line 612 of file walk.cpp.

◆ downRightDir()

int Prince::PrinceEngine::downRightDir ( )

Definition at line 684 of file walk.cpp.

◆ doZoomIn()

void Prince::PrinceEngine::doZoomIn ( int  slot)

Definition at line 420 of file draw.cpp.

◆ doZoomOut()

void Prince::PrinceEngine::doZoomOut ( int  slot)

Definition at line 454 of file draw.cpp.

◆ drawInvItems()

void Prince::PrinceEngine::drawInvItems ( )

Definition at line 275 of file inventory.cpp.

◆ drawLine()

int Prince::PrinceEngine::drawLine ( int  x0,
int  y0,
int  x1,
int  y1,
int(*)(int, int, void *)  plotProc,
void *  data 

Definition at line 96 of file walk.cpp.

◆ drawScreen()

void Prince::PrinceEngine::drawScreen ( )

Definition at line 589 of file draw.cpp.

◆ enableOptions()

void Prince::PrinceEngine::enableOptions ( bool  checkType)

Definition at line 460 of file inventory.cpp.

◆ findPoint()

void Prince::PrinceEngine::findPoint ( int  x,
int  y 

Definition at line 142 of file walk.cpp.

◆ freeAllNormAnims()

void Prince::PrinceEngine::freeAllNormAnims ( )

Definition at line 759 of file draw.cpp.

◆ freeAllSamples()

void Prince::PrinceEngine::freeAllSamples ( )

Definition at line 64 of file sound.cpp.

◆ freeCoords2()

void Prince::PrinceEngine::freeCoords2 ( )

Definition at line 1594 of file walk.cpp.

◆ freeCoords3()

void Prince::PrinceEngine::freeCoords3 ( )

Definition at line 1602 of file walk.cpp.

◆ freeDirectionTable()

void Prince::PrinceEngine::freeDirectionTable ( )

Definition at line 1240 of file walk.cpp.

◆ freeNormAnim()

void Prince::PrinceEngine::freeNormAnim ( int  slot)

Definition at line 745 of file draw.cpp.

◆ freeSample()

void Prince::PrinceEngine::freeSample ( uint16  sampleId)

Definition at line 56 of file sound.cpp.

◆ freeZoomObject()

void Prince::PrinceEngine::freeZoomObject ( int  slot)

Definition at line 483 of file draw.cpp.

◆ getCurve()

void Prince::PrinceEngine::getCurve ( )

Definition at line 976 of file prince.cpp.

◆ getFeatures()

uint32 Prince::PrinceEngine::getFeatures ( ) const

Definition at line 41 of file detection.cpp.

◆ getGameId()

const char * Prince::PrinceEngine::getGameId ( ) const

Definition at line 37 of file detection.cpp.

◆ getGameType()

int Prince::PrinceEngine::getGameType ( ) const

Definition at line 33 of file detection.cpp.

◆ getLanguage()

Common::Language Prince::PrinceEngine::getLanguage ( ) const

Definition at line 45 of file detection.cpp.

◆ getMob()

int Prince::PrinceEngine::getMob ( Common::Array< Mob > &  mobList,
bool  usePriorityList,
int  posX,
int  posY 

Definition at line 112 of file mob.cpp.

◆ getPixelAddr()

int Prince::PrinceEngine::getPixelAddr ( byte pathBitmap,
int  x,
int  y 

Definition at line 136 of file walk.cpp.

◆ getTextWidth()

uint32 Prince::PrinceEngine::getTextWidth ( const char *  s)

Definition at line 631 of file prince.cpp.

◆ grabMap()

void Prince::PrinceEngine::grabMap ( )

Definition at line 384 of file draw.cpp.

◆ hasFeature()

bool Prince::PrinceEngine::hasFeature ( EngineFeature  f) const

Determine whether the engine supports the specified feature.

Reimplemented from Engine.

Definition at line 187 of file detection.cpp.

◆ init()

void Prince::PrinceEngine::init ( void  )

Definition at line 201 of file prince.cpp.

◆ initZoomIn()

void Prince::PrinceEngine::initZoomIn ( int  slot)

Definition at line 391 of file draw.cpp.

◆ initZoomOut()

void Prince::PrinceEngine::initZoomOut ( int  slot)

Definition at line 406 of file draw.cpp.

◆ insertMasks()

void Prince::PrinceEngine::insertMasks ( Graphics::Surface originalRoomSurface)

Definition at line 93 of file draw.cpp.

◆ inventoryFlagChange()

void Prince::PrinceEngine::inventoryFlagChange ( bool  inventoryState)

Definition at line 212 of file inventory.cpp.

◆ inventoryLeftMouseButton()

void Prince::PrinceEngine::inventoryLeftMouseButton ( )

Definition at line 332 of file inventory.cpp.

◆ inventoryRightMouseButton()

void Prince::PrinceEngine::inventoryRightMouseButton ( )

Definition at line 454 of file inventory.cpp.

◆ keyHandler()

void Prince::PrinceEngine::keyHandler ( Common::Event  event)

Definition at line 541 of file prince.cpp.

◆ leftDir()

int Prince::PrinceEngine::leftDir ( )

Definition at line 324 of file walk.cpp.

◆ leftDownDir()

int Prince::PrinceEngine::leftDownDir ( )

Definition at line 288 of file walk.cpp.

◆ leftMouseButton()

void Prince::PrinceEngine::leftMouseButton ( )

Definition at line 708 of file prince.cpp.

◆ leftUpDir()

int Prince::PrinceEngine::leftUpDir ( )

Definition at line 360 of file walk.cpp.

◆ loadAllInv()

bool Prince::PrinceEngine::loadAllInv ( )

Definition at line 318 of file resource.cpp.

◆ loadAnim()

bool Prince::PrinceEngine::loadAnim ( uint16  animNr,
bool  loop 

Definition at line 203 of file resource.cpp.

◆ loadGame()

bool Prince::PrinceEngine::loadGame ( int  slotNumber)

Definition at line 430 of file saveload.cpp.

◆ loadGameState()

Common::Error Prince::PrinceEngine::loadGameState ( int  slot)

Load a game state.

slotthe slot from which a savestate should be loaded
returns kNoError on success, else an error code.

Reimplemented from Engine.

Definition at line 423 of file saveload.cpp.

◆ loadLocation()

bool Prince::PrinceEngine::loadLocation ( uint16  locationNr)

Definition at line 90 of file resource.cpp.

◆ loadMobPriority()

bool Prince::PrinceEngine::loadMobPriority ( const char *  resourceName)

Definition at line 349 of file resource.cpp.

◆ loadMobTranslationTexts()

void Prince::PrinceEngine::loadMobTranslationTexts ( )

Definition at line 502 of file prince.cpp.

◆ loadMusic()

bool Prince::PrinceEngine::loadMusic ( int  musNumber)

Definition at line 214 of file music.cpp.

◆ loadPath()

bool Prince::PrinceEngine::loadPath ( const char *  resourceName)

Definition at line 301 of file resource.cpp.

◆ loadSample()

bool Prince::PrinceEngine::loadSample ( uint32  sampleSlot,
const Common::String name 

Definition at line 70 of file sound.cpp.

◆ loadShadow()

bool Prince::PrinceEngine::loadShadow ( byte shadowBitmap,
uint32  dataSize,
const char *  resourceName1,
const char *  resourceName2 

Definition at line 242 of file resource.cpp.

◆ loadTrans()

bool Prince::PrinceEngine::loadTrans ( byte transTable,
const char *  resourceName 

Definition at line 279 of file resource.cpp.

◆ loadVoice()

bool Prince::PrinceEngine::loadVoice ( uint32  textSlot,
uint32  sampleSlot,
const Common::String name 

Definition at line 93 of file sound.cpp.

◆ loadZoom()

bool Prince::PrinceEngine::loadZoom ( byte zoomBitmap,
uint32  dataSize,
const char *  resourceName 

Definition at line 225 of file resource.cpp.

◆ mainLoop()

void Prince::PrinceEngine::mainLoop ( )

Definition at line 1151 of file prince.cpp.

◆ makeCurve()

void Prince::PrinceEngine::makeCurve ( )

Definition at line 982 of file prince.cpp.

◆ makeDirection()

Direction Prince::PrinceEngine::makeDirection ( int  x1,
int  y1,
int  x2,
int  y2 

Definition at line 196 of file walk.cpp.

◆ makeInvCursor()

void Prince::PrinceEngine::makeInvCursor ( int  itemNr)

Definition at line 100 of file cursor.cpp.

◆ makePath()

byte * Prince::PrinceEngine::makePath ( int  heroId,
int  currX,
int  currY,
int  destX,
int  destY 

Definition at line 1425 of file walk.cpp.

◆ makeShadowTable()

void Prince::PrinceEngine::makeShadowTable ( int  brightness)

◆ mouseWeirdo()

void Prince::PrinceEngine::mouseWeirdo ( )

Definition at line 1005 of file prince.cpp.

◆ moveRunHero()

void Prince::PrinceEngine::moveRunHero ( int  heroId,
int  x,
int  y,
int  dir,
bool  runHeroFlag 

Definition at line 57 of file walk.cpp.

◆ moveShandria()

void Prince::PrinceEngine::moveShandria ( )

Definition at line 1360 of file walk.cpp.

◆ openInventoryCheck()

void Prince::PrinceEngine::openInventoryCheck ( )

Definition at line 683 of file inventory.cpp.

◆ pauseEngineIntern()

void Prince::PrinceEngine::pauseEngineIntern ( bool  pause)

Actual implementation of pauseEngine by subclasses.

See there for details.

Reimplemented from Engine.

Definition at line 457 of file prince.cpp.

◆ pausePrinceEngine()

void Prince::PrinceEngine::pausePrinceEngine ( int  fps = kFPS)

Definition at line 701 of file prince.cpp.

◆ playNextFLCFrame()

bool Prince::PrinceEngine::playNextFLCFrame ( )

Definition at line 482 of file prince.cpp.

◆ playSample()

void Prince::PrinceEngine::playSample ( uint16  sampleId,
uint16  loopType 

Definition at line 34 of file sound.cpp.

◆ playVideo()

void Prince::PrinceEngine::playVideo ( Common::String  videoFilename)

Definition at line 31 of file videoplayer.cpp.

◆ plotShadowLinePoint()

void Prince::PrinceEngine::plotShadowLinePoint ( int  x,
int  y,
int  color,
void *  data 

Definition at line 475 of file prince.cpp.

◆ plotTraceLine()

int Prince::PrinceEngine::plotTraceLine ( int  x,
int  y,
void *  data 

Definition at line 268 of file walk.cpp.

◆ plotTracePoint()

int Prince::PrinceEngine::plotTracePoint ( int  x,
int  y,
void *  data 

Definition at line 1185 of file walk.cpp.

◆ prepareInventoryToView()

void Prince::PrinceEngine::prepareInventoryToView ( )

Definition at line 221 of file inventory.cpp.

◆ printAt()

void Prince::PrinceEngine::printAt ( uint32  slot,
uint8  color,
char *  s,
uint16  x,
uint16  y 

Definition at line 570 of file prince.cpp.

◆ readSavegameHeader()

WARN_UNUSED_RESULT bool Prince::PrinceEngine::readSavegameHeader ( Common::InSaveFile in,
SavegameHeader header,
bool  skipThumbnail = true 

Definition at line 80 of file saveload.cpp.

◆ rememberScreenInv()

void Prince::PrinceEngine::rememberScreenInv ( )

Definition at line 208 of file inventory.cpp.

◆ remInv()

void Prince::PrinceEngine::remInv ( int  heroId,
int  item 

Definition at line 57 of file inventory.cpp.

◆ removeSingleBackAnim()

void Prince::PrinceEngine::removeSingleBackAnim ( int  slot)

Definition at line 361 of file draw.cpp.

◆ resetGame()

void Prince::PrinceEngine::resetGame ( )

◆ rightDir()

int Prince::PrinceEngine::rightDir ( )

Definition at line 432 of file walk.cpp.

◆ rightDownDir()

int Prince::PrinceEngine::rightDownDir ( )

Definition at line 396 of file walk.cpp.

◆ rightMouseButton()

void Prince::PrinceEngine::rightMouseButton ( )

Definition at line 791 of file prince.cpp.

◆ rightUpDir()

int Prince::PrinceEngine::rightUpDir ( )

Definition at line 468 of file walk.cpp.

◆ run()

Common::Error Prince::PrinceEngine::run ( )

Init the engine and start its main loop.

returns kNoError on success, else an error code.

Implements Engine.

Definition at line 442 of file prince.cpp.

◆ runDrawNodes()

void Prince::PrinceEngine::runDrawNodes ( )

Definition at line 580 of file draw.cpp.

◆ saveGameState()

Common::Error Prince::PrinceEngine::saveGameState ( int  slot,
const Common::String desc,
bool  isAutosave = false 

Save a game state.

slotthe slot into which the savestate should be stored
desca description for the savestate, entered by the user
isAutosaveExpected to be true if an autosave is being created
returns kNoError on success, else an error code.

Reimplemented from Engine.

Definition at line 147 of file saveload.cpp.

◆ scanDirections()

void Prince::PrinceEngine::scanDirections ( )

Definition at line 1287 of file walk.cpp.

◆ scanDirectionsFindNext()

int Prince::PrinceEngine::scanDirectionsFindNext ( byte coords,
int  xDiff,
int  yDiff 

Definition at line 1247 of file walk.cpp.

◆ scrollCredits()

void Prince::PrinceEngine::scrollCredits ( )

Definition at line 1065 of file prince.cpp.

◆ scummVMSaveLoadDialog()

bool Prince::PrinceEngine::scummVMSaveLoadDialog ( bool  isSave)

Definition at line 49 of file saveload.cpp.

◆ setBackAnim()

void Prince::PrinceEngine::setBackAnim ( Anim backAnim)

Definition at line 269 of file draw.cpp.

◆ setMobTranslationTexts()

void Prince::PrinceEngine::setMobTranslationTexts ( )

Definition at line 513 of file prince.cpp.

◆ setPalette()

void Prince::PrinceEngine::setPalette ( const byte palette)

Definition at line 677 of file draw.cpp.

◆ setShadowScale()

void Prince::PrinceEngine::setShadowScale ( int32  shadowScale)

Definition at line 466 of file prince.cpp.

◆ setVoice()

void Prince::PrinceEngine::setVoice ( uint16  slot,
uint32  sampleSlot,
uint16  flag 

Definition at line 144 of file sound.cpp.

◆ showAnim()

void Prince::PrinceEngine::showAnim ( Anim anim)

Definition at line 162 of file draw.cpp.

◆ showBackAnims()

void Prince::PrinceEngine::showBackAnims ( )

Definition at line 283 of file draw.cpp.

◆ showLogo()

void Prince::PrinceEngine::showLogo ( )

Definition at line 405 of file prince.cpp.

◆ showMask()

void Prince::PrinceEngine::showMask ( int  maskNr,
Graphics::Surface originalRoomSurface 

Definition at line 106 of file draw.cpp.

◆ showNormAnims()

void Prince::PrinceEngine::showNormAnims ( )

Definition at line 242 of file draw.cpp.

◆ showObjects()

void Prince::PrinceEngine::showObjects ( )

Definition at line 494 of file draw.cpp.

◆ showParallax()

void Prince::PrinceEngine::showParallax ( )

Definition at line 557 of file draw.cpp.

◆ showPower()

void Prince::PrinceEngine::showPower ( )

Definition at line 1033 of file prince.cpp.

◆ showSprite()

void Prince::PrinceEngine::showSprite ( Graphics::Surface spriteSurface,
int  destX,
int  destY,
int  destZ 

Definition at line 126 of file draw.cpp.

◆ showSpriteShadow()

void Prince::PrinceEngine::showSpriteShadow ( Graphics::Surface shadowSurface,
int  destX,
int  destY,
int  destZ 

Definition at line 144 of file draw.cpp.

◆ showTexts()

void Prince::PrinceEngine::showTexts ( Graphics::Surface screen)

Definition at line 640 of file prince.cpp.

◆ specialPlot()

void Prince::PrinceEngine::specialPlot ( int  x,
int  y 

Definition at line 244 of file walk.cpp.

◆ specialPlot2()

void Prince::PrinceEngine::specialPlot2 ( int  x,
int  y 

Definition at line 254 of file walk.cpp.

◆ specialPlotInside()

void Prince::PrinceEngine::specialPlotInside ( int  x,
int  y 

Definition at line 259 of file walk.cpp.

◆ specialPlotInside2()

void Prince::PrinceEngine::specialPlotInside2 ( int  x,
int  y 

Definition at line 1178 of file walk.cpp.

◆ spriteCheck()

bool Prince::PrinceEngine::spriteCheck ( int  sprWidth,
int  sprHeight,
int  destX,
int  destY 

Definition at line 34 of file draw.cpp.

◆ stopAllSamples()

void Prince::PrinceEngine::stopAllSamples ( )

Definition at line 52 of file sound.cpp.

◆ stopMusic()

void Prince::PrinceEngine::stopMusic ( )

Definition at line 230 of file music.cpp.

◆ stopSample()

void Prince::PrinceEngine::stopSample ( uint16  sampleId)

Definition at line 48 of file sound.cpp.

◆ swapInv()

void Prince::PrinceEngine::swapInv ( int  heroId)

Definition at line 90 of file inventory.cpp.

◆ syncGame()

void Prince::PrinceEngine::syncGame ( Common::SeekableReadStream readStream,
Common::WriteStream writeStream 

Definition at line 201 of file saveload.cpp.

◆ talkHero()

void Prince::PrinceEngine::talkHero ( int  slot)

Definition at line 949 of file prince.cpp.

◆ tracePath()

bool Prince::PrinceEngine::tracePath ( int  x1,
int  y1,
int  x2,
int  y2 

Definition at line 1051 of file walk.cpp.

◆ upDir()

int Prince::PrinceEngine::upDir ( )

Definition at line 540 of file walk.cpp.

◆ upLeftDir()

int Prince::PrinceEngine::upLeftDir ( )

Definition at line 504 of file walk.cpp.

◆ upRightDir()

int Prince::PrinceEngine::upRightDir ( )

Definition at line 576 of file walk.cpp.

◆ walkTo()

void Prince::PrinceEngine::walkTo ( )

Definition at line 29 of file walk.cpp.

◆ writeSavegameHeader()

void Prince::PrinceEngine::writeSavegameHeader ( Common::OutSaveFile out,
SavegameHeader header 

Definition at line 168 of file saveload.cpp.

Member Data Documentation

◆ _allInvList

Common::Array<InvItem> Prince::PrinceEngine::_allInvList

Definition at line 688 of file prince.h.

◆ _animList

Common::Array<AnimListItem> Prince::PrinceEngine::_animList

Definition at line 408 of file prince.h.

◆ _audioStream

Audio::RewindableAudioStream* Prince::PrinceEngine::_audioStream[kMaxSamples]

Definition at line 684 of file prince.h.

◆ _backAnimList

Common::Array<BackgroundAnim> Prince::PrinceEngine::_backAnimList

Definition at line 409 of file prince.h.

◆ _candleCounter

int Prince::PrinceEngine::_candleCounter

Definition at line 480 of file prince.h.

◆ _checkBitmap

byte* Prince::PrinceEngine::_checkBitmap

Definition at line 586 of file prince.h.

◆ _checkBitmapTemp

byte* Prince::PrinceEngine::_checkBitmapTemp

Definition at line 585 of file prince.h.

◆ _checkMask

int Prince::PrinceEngine::_checkMask

Definition at line 587 of file prince.h.

◆ _checkX

int Prince::PrinceEngine::_checkX

Definition at line 588 of file prince.h.

◆ _checkY

int Prince::PrinceEngine::_checkY

Definition at line 589 of file prince.h.

◆ _coords

byte* Prince::PrinceEngine::_coords

Definition at line 574 of file prince.h.

◆ _coords2

byte* Prince::PrinceEngine::_coords2

Definition at line 576 of file prince.h.

◆ _coords3

byte* Prince::PrinceEngine::_coords3

Definition at line 578 of file prince.h.

◆ _coordsBuf

byte* Prince::PrinceEngine::_coordsBuf

Definition at line 573 of file prince.h.

◆ _coordsBuf2

byte* Prince::PrinceEngine::_coordsBuf2

Definition at line 575 of file prince.h.

◆ _coordsBuf3

byte* Prince::PrinceEngine::_coordsBuf3

Definition at line 577 of file prince.h.

◆ _coordsBufEnd

byte* Prince::PrinceEngine::_coordsBufEnd

Definition at line 572 of file prince.h.

◆ _creditsData

byte* Prince::PrinceEngine::_creditsData

Definition at line 300 of file prince.h.

◆ _creditsDataSize

int32 Prince::PrinceEngine::_creditsDataSize

Definition at line 299 of file prince.h.

◆ _currentMidi

uint8 Prince::PrinceEngine::_currentMidi

Definition at line 373 of file prince.h.

◆ _currentPointerNumber

int Prince::PrinceEngine::_currentPointerNumber

Definition at line 433 of file prince.h.

◆ _currentTime

uint32 Prince::PrinceEngine::_currentTime

Definition at line 360 of file prince.h.

◆ _cursor1

Cursor* Prince::PrinceEngine::_cursor1

Definition at line 676 of file prince.h.

◆ _cursor2

Graphics::Surface* Prince::PrinceEngine::_cursor2

Definition at line 677 of file prince.h.

◆ _cursor3

Cursor* Prince::PrinceEngine::_cursor3

Definition at line 678 of file prince.h.

◆ _cursorNr

uint8 Prince::PrinceEngine::_cursorNr

Definition at line 673 of file prince.h.

◆ _curveData

int16* Prince::PrinceEngine::_curveData

Definition at line 546 of file prince.h.

◆ _curvPos

int Prince::PrinceEngine::_curvPos

Definition at line 547 of file prince.h.

◆ _debugger

Debugger* Prince::PrinceEngine::_debugger

Definition at line 679 of file prince.h.

◆ _dialogBoxAddr

byte* Prince::PrinceEngine::_dialogBoxAddr[32]

Definition at line 511 of file prince.h.

◆ _dialogColor1

int Prince::PrinceEngine::_dialogColor1

Definition at line 521 of file prince.h.

◆ _dialogColor2

int Prince::PrinceEngine::_dialogColor2

Definition at line 522 of file prince.h.

◆ _dialogDat

byte* Prince::PrinceEngine::_dialogDat

Definition at line 508 of file prince.h.

◆ _dialogData

byte* Prince::PrinceEngine::_dialogData

Definition at line 509 of file prince.h.

◆ _dialogDatSize

uint32 Prince::PrinceEngine::_dialogDatSize

Definition at line 507 of file prince.h.

◆ _dialogFlag

bool Prince::PrinceEngine::_dialogFlag

Definition at line 517 of file prince.h.

◆ _dialogHeight

int Prince::PrinceEngine::_dialogHeight

Definition at line 519 of file prince.h.

◆ _dialogImage

Graphics::Surface* Prince::PrinceEngine::_dialogImage

Definition at line 523 of file prince.h.

◆ _dialogLines

int Prince::PrinceEngine::_dialogLines

Definition at line 516 of file prince.h.

◆ _dialogLineSpace

int Prince::PrinceEngine::_dialogLineSpace

Definition at line 520 of file prince.h.

◆ _dialogOptAddr

byte* Prince::PrinceEngine::_dialogOptAddr[32]

Definition at line 512 of file prince.h.

◆ _dialogOptLines

int Prince::PrinceEngine::_dialogOptLines[4 *32]

Definition at line 513 of file prince.h.

◆ _dialogText

byte* Prince::PrinceEngine::_dialogText

Definition at line 515 of file prince.h.

◆ _dialogWidth

int Prince::PrinceEngine::_dialogWidth

Definition at line 518 of file prince.h.

◆ _directionTable

byte* Prince::PrinceEngine::_directionTable

Definition at line 582 of file prince.h.

◆ _drawNodeList

Common::Array<DrawNode> Prince::PrinceEngine::_drawNodeList

Definition at line 407 of file prince.h.

◆ _flags

InterpreterFlags* Prince::PrinceEngine::_flags

Definition at line 370 of file prince.h.

◆ _flcFrameSurface

const Graphics::Surface* Prince::PrinceEngine::_flcFrameSurface

Definition at line 310 of file prince.h.

◆ _flicLooped

bool Prince::PrinceEngine::_flicLooped

Definition at line 691 of file prince.h.

◆ _flicPlayer

Video::FlicDecoder Prince::PrinceEngine::_flicPlayer

Definition at line 309 of file prince.h.

◆ _font

Font* Prince::PrinceEngine::_font

Definition at line 680 of file prince.h.

◆ _fpX

int Prince::PrinceEngine::_fpX

Definition at line 597 of file prince.h.

◆ _fpY

int Prince::PrinceEngine::_fpY

Definition at line 598 of file prince.h.

◆ _gameDescription

const PrinceGameDescription* Prince::PrinceEngine::_gameDescription

Definition at line 308 of file prince.h.

◆ _graph

GraphicsMan* Prince::PrinceEngine::_graph

Definition at line 372 of file prince.h.

◆ _interpreter

Interpreter* Prince::PrinceEngine::_interpreter

Definition at line 371 of file prince.h.

◆ _invCounter

int Prince::PrinceEngine::_invCounter

Definition at line 482 of file prince.h.

◆ _invCurInside

bool Prince::PrinceEngine::_invCurInside

Definition at line 477 of file prince.h.

◆ _inventoryBackgroundRemember

bool Prince::PrinceEngine::_inventoryBackgroundRemember

Definition at line 462 of file prince.h.

◆ _invExamY

int Prince::PrinceEngine::_invExamY

Definition at line 461 of file prince.h.

◆ _invHeight

int Prince::PrinceEngine::_invHeight

Definition at line 476 of file prince.h.

◆ _invLine

int Prince::PrinceEngine::_invLine

Definition at line 465 of file prince.h.

◆ _invLineH

int Prince::PrinceEngine::_invLineH

Definition at line 468 of file prince.h.

◆ _invLines

int Prince::PrinceEngine::_invLines

Definition at line 466 of file prince.h.

◆ _invLineSkipX

int Prince::PrinceEngine::_invLineSkipX

Definition at line 471 of file prince.h.

◆ _invLineSkipY

int Prince::PrinceEngine::_invLineSkipY

Definition at line 472 of file prince.h.

◆ _invLineW

int Prince::PrinceEngine::_invLineW

Definition at line 467 of file prince.h.

◆ _invLineX

int Prince::PrinceEngine::_invLineX

Definition at line 463 of file prince.h.

◆ _invLineY

int Prince::PrinceEngine::_invLineY

Definition at line 464 of file prince.h.

◆ _invMaxCount

int Prince::PrinceEngine::_invMaxCount

Definition at line 481 of file prince.h.

◆ _invMobList

Common::Array<Mob> Prince::PrinceEngine::_invMobList

Definition at line 689 of file prince.h.

◆ _invOptionsHeight

int Prince::PrinceEngine::_invOptionsHeight

Definition at line 452 of file prince.h.

◆ _invOptionsNumber

int Prince::PrinceEngine::_invOptionsNumber

Definition at line 456 of file prince.h.

◆ _invOptionsStep

int Prince::PrinceEngine::_invOptionsStep

Definition at line 454 of file prince.h.

◆ _invOptionsWidth

int Prince::PrinceEngine::_invOptionsWidth

Definition at line 451 of file prince.h.

◆ _invTxt

byte* Prince::PrinceEngine::_invTxt

Definition at line 439 of file prince.h.

◆ _invTxtSize

uint32 Prince::PrinceEngine::_invTxtSize

Definition at line 438 of file prince.h.

◆ _invWidth

int Prince::PrinceEngine::_invWidth

Definition at line 475 of file prince.h.

◆ _invX1

int Prince::PrinceEngine::_invX1

Definition at line 473 of file prince.h.

◆ _invY1

int Prince::PrinceEngine::_invY1

Definition at line 474 of file prince.h.

◆ _lightX

int16 Prince::PrinceEngine::_lightX

Definition at line 379 of file prince.h.

◆ _lightY

int16 Prince::PrinceEngine::_lightY

Definition at line 380 of file prince.h.

◆ _locationNr

uint16 Prince::PrinceEngine::_locationNr

Definition at line 361 of file prince.h.

◆ _mainHero

Hero* Prince::PrinceEngine::_mainHero

Definition at line 351 of file prince.h.

◆ _maskList

Common::Array<Mask> Prince::PrinceEngine::_maskList

Definition at line 413 of file prince.h.

◆ _maxInvH

int Prince::PrinceEngine::_maxInvH

Definition at line 470 of file prince.h.

◆ _maxInvW

int Prince::PrinceEngine::_maxInvW

Definition at line 469 of file prince.h.

◆ _midiPlayer

MusicPlayer* Prince::PrinceEngine::_midiPlayer

Definition at line 681 of file prince.h.

◆ _mobList

Common::Array<Mob> Prince::PrinceEngine::_mobList

Definition at line 411 of file prince.h.

◆ _mobPriorityList

Common::Array<uint32> Prince::PrinceEngine::_mobPriorityList

Definition at line 412 of file prince.h.

◆ _mobTranslationData

byte* Prince::PrinceEngine::_mobTranslationData

Definition at line 317 of file prince.h.

◆ _mobTranslationSize

uint32 Prince::PrinceEngine::_mobTranslationSize

Definition at line 316 of file prince.h.

◆ _mouseFlag

int Prince::PrinceEngine::_mouseFlag

Definition at line 359 of file prince.h.

◆ _mst_shadow

int Prince::PrinceEngine::_mst_shadow

Definition at line 478 of file prince.h.

◆ _mst_shadow2

int Prince::PrinceEngine::_mst_shadow2

Definition at line 479 of file prince.h.

◆ _normAnimList

Common::Array<Anim> Prince::PrinceEngine::_normAnimList

Definition at line 410 of file prince.h.

◆ _objList

Common::Array<Object *> Prince::PrinceEngine::_objList

Definition at line 414 of file prince.h.

◆ _objSlot

uint16* Prince::PrinceEngine::_objSlot

Definition at line 415 of file prince.h.

◆ _optionEnabled

int Prince::PrinceEngine::_optionEnabled

Definition at line 445 of file prince.h.

◆ _optionsColor1

int Prince::PrinceEngine::_optionsColor1

Definition at line 457 of file prince.h.

◆ _optionsColor2

int Prince::PrinceEngine::_optionsColor2

Definition at line 458 of file prince.h.

◆ _optionsFlag

bool Prince::PrinceEngine::_optionsFlag

Definition at line 444 of file prince.h.

◆ _optionsHeight

int Prince::PrinceEngine::_optionsHeight

Definition at line 450 of file prince.h.

◆ _optionsMob

int Prince::PrinceEngine::_optionsMob

Definition at line 446 of file prince.h.

◆ _optionsNumber

int Prince::PrinceEngine::_optionsNumber

Definition at line 455 of file prince.h.

◆ _optionsPic

Graphics::Surface* Prince::PrinceEngine::_optionsPic

Definition at line 441 of file prince.h.

◆ _optionsPicInInventory

Graphics::Surface* Prince::PrinceEngine::_optionsPicInInventory

Definition at line 442 of file prince.h.

◆ _optionsStep

int Prince::PrinceEngine::_optionsStep

Definition at line 453 of file prince.h.

◆ _optionsWidth

int Prince::PrinceEngine::_optionsWidth

Definition at line 449 of file prince.h.

◆ _optionsX

int Prince::PrinceEngine::_optionsX

Definition at line 447 of file prince.h.

◆ _optionsY

int Prince::PrinceEngine::_optionsY

Definition at line 448 of file prince.h.

◆ _picWindowX

int32 Prince::PrinceEngine::_picWindowX

Definition at line 363 of file prince.h.

◆ _picWindowY

int32 Prince::PrinceEngine::_picWindowY

Definition at line 364 of file prince.h.

◆ _pscrList

Common::Array<PScr *> Prince::PrinceEngine::_pscrList

Definition at line 687 of file prince.h.

◆ _randomSource

Common::RandomSource Prince::PrinceEngine::_randomSource

Definition at line 421 of file prince.h.

◆ _rembBitmap

byte* Prince::PrinceEngine::_rembBitmap

Definition at line 592 of file prince.h.

◆ _rembBitmapTemp

byte* Prince::PrinceEngine::_rembBitmapTemp

Definition at line 591 of file prince.h.

◆ _rembMask

int Prince::PrinceEngine::_rembMask

Definition at line 593 of file prince.h.

◆ _rembX

int Prince::PrinceEngine::_rembX

Definition at line 594 of file prince.h.

◆ _rembY

int Prince::PrinceEngine::_rembY

Definition at line 595 of file prince.h.

◆ _rnd

Common::RandomSource* Prince::PrinceEngine::_rnd

Definition at line 675 of file prince.h.

◆ _room

Room* Prince::PrinceEngine::_room

Definition at line 368 of file prince.h.

◆ _roomBmp

Image::BitmapDecoder* Prince::PrinceEngine::_roomBmp

Definition at line 366 of file prince.h.

◆ _roomPathBitmap

byte* Prince::PrinceEngine::_roomPathBitmap

Definition at line 570 of file prince.h.

◆ _roomPathBitmapTemp

byte* Prince::PrinceEngine::_roomPathBitmapTemp

Definition at line 571 of file prince.h.

◆ _scaleValue

int16 Prince::PrinceEngine::_scaleValue

Definition at line 378 of file prince.h.

◆ _sceneWidth

uint16 Prince::PrinceEngine::_sceneWidth

Definition at line 362 of file prince.h.

◆ _script

Script* Prince::PrinceEngine::_script

Definition at line 369 of file prince.h.

◆ _secondHero

Hero* Prince::PrinceEngine::_secondHero

Definition at line 352 of file prince.h.

◆ _selectedItem

int Prince::PrinceEngine::_selectedItem

Definition at line 431 of file prince.h.

◆ _selectedMob

int Prince::PrinceEngine::_selectedMob

Definition at line 430 of file prince.h.

◆ _selectedMode

int Prince::PrinceEngine::_selectedMode

Definition at line 432 of file prince.h.

◆ _shadLineLen

int32 Prince::PrinceEngine::_shadLineLen

Definition at line 382 of file prince.h.

◆ _shadowBitmap

byte* Prince::PrinceEngine::_shadowBitmap

Definition at line 375 of file prince.h.

◆ _shadowLine

byte* Prince::PrinceEngine::_shadowLine

Definition at line 383 of file prince.h.

◆ _shadScaleValue

int32 Prince::PrinceEngine::_shadScaleValue

Definition at line 381 of file prince.h.

◆ _shanLen

int Prince::PrinceEngine::_shanLen

Definition at line 583 of file prince.h.

◆ _showInventoryFlag

bool Prince::PrinceEngine::_showInventoryFlag

Definition at line 460 of file prince.h.

◆ _soundHandle

Audio::SoundHandle Prince::PrinceEngine::_soundHandle[kMaxSamples]

Definition at line 685 of file prince.h.

◆ _suitcaseBmp

MhwanhDecoder* Prince::PrinceEngine::_suitcaseBmp

Definition at line 367 of file prince.h.

◆ _talkTxt

byte* Prince::PrinceEngine::_talkTxt

Definition at line 314 of file prince.h.

◆ _talkTxtSize

uint32 Prince::PrinceEngine::_talkTxtSize

Definition at line 313 of file prince.h.

◆ _textSlots

Text Prince::PrinceEngine::_textSlots[kMaxTexts]

Definition at line 349 of file prince.h.

◆ _traceLineFirstPointFlag

bool Prince::PrinceEngine::_traceLineFirstPointFlag

Definition at line 580 of file prince.h.

◆ _traceLineLen

int Prince::PrinceEngine::_traceLineLen

Definition at line 579 of file prince.h.

◆ _tracePointFirstPointFlag

bool Prince::PrinceEngine::_tracePointFirstPointFlag

Definition at line 581 of file prince.h.

◆ _transTable

byte* Prince::PrinceEngine::_transTable

Definition at line 376 of file prince.h.

◆ _variaTxt

VariaTxt* Prince::PrinceEngine::_variaTxt

Definition at line 311 of file prince.h.

◆ _zoomBitmap

byte* Prince::PrinceEngine::_zoomBitmap

Definition at line 374 of file prince.h.

◆ kCelStep

const int Prince::PrinceEngine::kCelStep = 4

Definition at line 545 of file prince.h.

◆ kCurveLen

const int16 Prince::PrinceEngine::kCurveLen = 17

Definition at line 544 of file prince.h.

◆ kFadeStep

const uint8 Prince::PrinceEngine::kFadeStep = 4

Definition at line 537 of file prince.h.

◆ kFPS

const int16 Prince::PrinceEngine::kFPS = 15

Definition at line 387 of file prince.h.

◆ kIntMax

const int32 Prince::PrinceEngine::kIntMax = 2147483647

Definition at line 388 of file prince.h.

◆ kMaxBackAnims

const int Prince::PrinceEngine::kMaxBackAnims = 64

Definition at line 403 of file prince.h.

◆ kMaxInv

const int16 Prince::PrinceEngine::kMaxInv = 90

Definition at line 435 of file prince.h.

◆ kMaxItems

const uint16 Prince::PrinceEngine::kMaxItems = 30

Definition at line 436 of file prince.h.

◆ kMaxMobs

const int Prince::PrinceEngine::kMaxMobs = 64

Definition at line 405 of file prince.h.

◆ kMaxNormAnims

const int Prince::PrinceEngine::kMaxNormAnims = 64

Definition at line 402 of file prince.h.

◆ kMaxObjects

const int Prince::PrinceEngine::kMaxObjects = 64

Definition at line 404 of file prince.h.

◆ kMaxPicHeight

const int16 Prince::PrinceEngine::kMaxPicHeight = 480

Definition at line 391 of file prince.h.

◆ kMaxPicWidth

const int16 Prince::PrinceEngine::kMaxPicWidth = 1280

Definition at line 390 of file prince.h.

◆ kMaxSamples

const int Prince::PrinceEngine::kMaxSamples = 60

Definition at line 683 of file prince.h.

◆ kMaxTexts

const uint8 Prince::PrinceEngine::kMaxTexts = 32

Definition at line 348 of file prince.h.

◆ kMinDistance

const int Prince::PrinceEngine::kMinDistance = 2500

Definition at line 568 of file prince.h.

◆ kNormalHeight

const int16 Prince::PrinceEngine::kNormalHeight = 480

Definition at line 399 of file prince.h.

◆ kNormalWidth

const int16 Prince::PrinceEngine::kNormalWidth = 640

Definition at line 398 of file prince.h.

◆ kPathBitmapLen

const uint32 Prince::PrinceEngine::kPathBitmapLen = (kMaxPicHeight / kPathGridStep * kMaxPicWidth / kPathGridStep) / 8

Definition at line 565 of file prince.h.

◆ kPathGridStep

const int16 Prince::PrinceEngine::kPathGridStep = 2

Definition at line 564 of file prince.h.

◆ kPBW

const int32 Prince::PrinceEngine::kPBW = kMaxPicWidth / 16

Definition at line 567 of file prince.h.

◆ kPowerBarBackgroundColor

const uint8 Prince::PrinceEngine::kPowerBarBackgroundColor = 0

Definition at line 556 of file prince.h.

◆ kPowerBarGreenColor1

const uint8 Prince::PrinceEngine::kPowerBarGreenColor1 = 202

Definition at line 558 of file prince.h.

◆ kPowerBarGreenColor2

const uint8 Prince::PrinceEngine::kPowerBarGreenColor2 = 235

Definition at line 559 of file prince.h.

◆ kPowerBarGreenHeight

const uint8 Prince::PrinceEngine::kPowerBarGreenHeight = 8

Definition at line 560 of file prince.h.

◆ kPowerBarGreenPosY

const uint16 Prince::PrinceEngine::kPowerBarGreenPosY = 434

Definition at line 557 of file prince.h.

◆ kPowerBarHeight

const uint8 Prince::PrinceEngine::kPowerBarHeight = 16

Definition at line 555 of file prince.h.

◆ kPowerBarPosX

const uint16 Prince::PrinceEngine::kPowerBarPosX = 288

Definition at line 552 of file prince.h.

◆ kPowerBarPosY

const uint16 Prince::PrinceEngine::kPowerBarPosY = 430

Definition at line 553 of file prince.h.

◆ kPowerBarWidth

const uint8 Prince::PrinceEngine::kPowerBarWidth = 64

Definition at line 554 of file prince.h.

◆ kShadowBitmapSize

const int32 Prince::PrinceEngine::kShadowBitmapSize = kMaxPicWidth * kMaxPicHeight / 8

Definition at line 394 of file prince.h.

◆ kShadowLineArraySize

const int16 Prince::PrinceEngine::kShadowLineArraySize = 2 * 1280 * 4

Definition at line 395 of file prince.h.

◆ kTracePts

const int32 Prince::PrinceEngine::kTracePts = 8000

Definition at line 566 of file prince.h.

◆ kTransTableSize

const uint32 Prince::PrinceEngine::kTransTableSize = 256 * 256

Definition at line 400 of file prince.h.

◆ kZoomBitmapHeight

const int16 Prince::PrinceEngine::kZoomBitmapHeight = kMaxPicHeight / kZoomStep

Definition at line 397 of file prince.h.

◆ kZoomBitmapLen

const int32 Prince::PrinceEngine::kZoomBitmapLen = kMaxPicHeight / kZoomStep * kMaxPicWidth / kZoomStep

Definition at line 393 of file prince.h.

◆ kZoomBitmapWidth

const int16 Prince::PrinceEngine::kZoomBitmapWidth = kMaxPicWidth / kZoomStep

Definition at line 396 of file prince.h.

◆ kZoomStep

const int16 Prince::PrinceEngine::kZoomStep = 4

Definition at line 392 of file prince.h.

◆ zoomInStep

const uint8 Prince::PrinceEngine::zoomInStep = 8

Definition at line 530 of file prince.h.

The documentation for this class was generated from the following files: