ScummVM API documentation
Bagel::SBBasePda Class Reference
Inheritance diagram for Bagel::SBBasePda:
Bagel::CBagPDA Bagel::SBZoomPda

Public Member Functions

 SBBasePda (CBofWindow *parent=nullptr, const CBofRect &rect=CBofRect(), bool activated=false)
 
bool isActivated () const
 
bool isActivating () const
 
virtual ErrorCode attachActiveObjects ()
 
virtual ErrorCode detachActiveObjects ()
 
void synchronizePdaState ()
 
void activate ()
 
void deactivate ()
 
virtual bool showInventory ()
 
virtual bool hideInventory ()
 
virtual bool showMovie ()
 
virtual bool hideMovie ()
 
bool setMovie (CBofString &movieName) const
 
void stopMovie (bool bResetPDA) const
 
void setDeactivate (bool b)
 
bool getDeactivate () const
 
virtual bool showMap ()
 
virtual bool hideMap ()
 
virtual bool zoom ()
 
virtual bool showLog ()
 
virtual bool msgLight ()
 
virtual bool hideCurDisplay ()
 
virtual bool restoreCurDisplay ()
 
void setPdaState ()
 
void getPdaState ()
 
void setZoomed (bool newVal)
 
bool getZoomed () const
 
int getProperCursor (const CBofPoint &pos, CBofRect &pdaRect) const
 
CBofRect getViewRect () const
 

Static Public Member Functions

static void initialize ()
 
static void setPdaMode (PdaMode pdaMode)
 
static PdaMode getPdaMode ()
 
static void * pdaButtonHandler (int refId, void *info)
 

Protected Attributes

int _numMoves
 
int _activating
 
bool _activated
 
int _moveDist
 
CBagStorageDevBmp_mooWnd
 
CBagStorageDevBmp_invWnd
 
CBagStorageDevBmp_mapWnd
 
CBagStorageDevBmp_logWnd
 
CBagStorageDevBmp_curDisplay
 
CBofWindow_parent
 
bool _zoomedFl
 
bool _deactivateFl
 
CBagStorageDevBmp_holdDisplay
 

Static Protected Attributes

static PdaMode _pdaMode
 
static PdaPos _pdaPos
 
static PdaMode _holdMode
 

Member Function Documentation

◆ setPdaMode()

static void Bagel::SBBasePda::setPdaMode ( PdaMode  pdaMode)
inlinestatic

Allows PDA mode to be set by script

◆ synchronizePdaState()

void Bagel::SBBasePda::synchronizePdaState ( )

Sync starting options

◆ showInventory()

virtual bool Bagel::SBBasePda::showInventory ( )
virtual

Show the inventory

Reimplemented in Bagel::CBagPDA.

◆ hideInventory()

virtual bool Bagel::SBBasePda::hideInventory ( )
virtual

Hide the inventory

Reimplemented in Bagel::CBagPDA.

◆ showMovie()

virtual bool Bagel::SBBasePda::showMovie ( )
virtual

Show the movie window

◆ hideMovie()

virtual bool Bagel::SBBasePda::hideMovie ( )
virtual

Hide the movie window

◆ setMovie()

bool Bagel::SBBasePda::setMovie ( CBofString movieName) const

Set the movie to play

Parameters
movieNameMovie filename
Returns
Success/failure

◆ stopMovie()

void Bagel::SBBasePda::stopMovie ( bool  bResetPDA) const

Stops any playing movie

◆ showMap()

virtual bool Bagel::SBBasePda::showMap ( )
virtual

Show the map

◆ hideMap()

virtual bool Bagel::SBBasePda::hideMap ( )
virtual

Hide the map

◆ zoom()

virtual bool Bagel::SBBasePda::zoom ( )
inlinevirtual

Zoom the current display

◆ hideCurDisplay()

virtual bool Bagel::SBBasePda::hideCurDisplay ( )
virtual

Hide the current display and reset the _curDisplay to nullptr

Returns
Success/failure

Reimplemented in Bagel::CBagPDA.

◆ restoreCurDisplay()

virtual bool Bagel::SBBasePda::restoreCurDisplay ( )
virtual

Hide the current display and reset the _curDisplay to nullptr

Returns
Success/Failure

Reimplemented in Bagel::CBagPDA.

◆ getViewRect()

CBofRect Bagel::SBBasePda::getViewRect ( ) const

Returns the background rect


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