ScummVM API documentation
Bagel::SpaceBar::SrafComputer Class Reference
Inheritance diagram for Bagel::SpaceBar::SrafComputer:
Bagel::CBagStorageDevWnd Bagel::CBofWindow Bagel::CBagStorageDev Bagel::CLList Bagel::CBofObject Bagel::CBofError Bagel::CBagParseObject

Public Member Functions

void onKeyHit (uint32 lKey, uint32 nRepCount) override
 
ErrorCode attach () override
 
ErrorCode detach () override
 
void onLButtonDown (uint32 nFlags, CBofPoint *xPoint, void *=nullptr) override
 
void onLButtonUp (uint32 nFlags, CBofPoint *xPoint, void *=nullptr) override
 
void onMainLoop () override
 
void onPaint (CBofRect *pRect) override
 
void onBofButton (CBofObject *, int) override
 
void onBofListBox (CBofObject *pListBox, int nItemIndex) override
 
void setOn ()
 
void setOff ()
 
void setQuit ()
 
void alignAtColumn (CBofString &sStr, const char *szRightText, int nAlignAt)
 
CBofStringbuildBidString (int index)
 
void deleteListBox ()
 
ErrorCode createListBox ()
 
void fillMain ()
 
void hideAllButtons ()
 
void activateDealSummary ()
 
void activateBuyerBids ()
 
void activateDealBackground ()
 
void activateSellerBios ()
 
void activateOtherBios ()
 
void activateStaffBios ()
 
void activateDispatchTeam ()
 
void activateCurrentEMail ()
 
void activateAudioSettings ()
 
void activateRoboButler ()
 
void activateCheckTeams ()
 
void activateCodeWords ()
 
void deactivateMainScreen ()
 
void activateMainScreen ()
 
void initDealSummary ()
 
void initBuyerBids ()
 
void initDealBackground ()
 
void initSellerBios ()
 
void initOtherBios ()
 
void initStaffBios ()
 
void initDispatchTeam ()
 
void initCurrentEMail ()
 
void initAudioSettings ()
 
void initRoboButler ()
 
void onListMainScreen ()
 
void onListDealSummary ()
 
void onListBuyerBids ()
 
void onListDealBackground ()
 
void onListSellerBios ()
 
void onListOtherBios ()
 
void onListStaffBios ()
 
void onListDispatchTeam ()
 
void onListCurrentEMail ()
 
void onListAudioSettings ()
 
void onListRoboButler ()
 
void onListCheckTeams ()
 
void onListCodeWords ()
 
void onButtonMainScreen (CBofButton *pButton, int nState)
 
void onButtonDealSummary (CBofButton *pButton, int nState)
 
void onButtonBuyerBids (CBofButton *pButton, int nState)
 
void onButtonDealBackground (CBofButton *pButton, int nState)
 
void onButtonSellerBios (CBofButton *pButton, int nState)
 
void onButtonOtherBios (CBofButton *pButton, int nState)
 
void onButtonStaffBios (CBofButton *pButton, int nState)
 
void onButtonDispatchTeam (CBofButton *pButton, int nState)
 
void onButtonCurrentEMail (CBofButton *pButton, int nState)
 
void onButtonAudioSettings (CBofButton *pButton, int nState)
 
void onButtonRoboButler (CBofButton *pButton, int nState)
 
void onButtonCheckTeams (CBofButton *pButton, int nState)
 
void onButtonCodeWords (CBofButton *pButton, int nState)
 
void displayTextScreen (CBofString &)
 
void recalcSellerSummaryList ()
 
void recalcBuyerSummaryList ()
 
void recalcDispatchList (int)
 
bool onButtonSubmitOffer ()
 
int getMeetMember (int)
 
int getAdjustedIndex (int, int, bool)
 
bool verifyDispatchTeam ()
 
void notifyBoss (CBofString &, int)
 
int calculateMeetingTime (int nFlags)
 
bool reportMeetingStatus (int)
 
void setMeetingResult (int, int, bool)
 
int getTeamCaptain (int nFlags)
 
int getTeamGender (int nFlags)
 
void doOrderBeverage ()
 
void doOrderSnack ()
 
void doShowChowButtons ()
 
void displayMessage (const char *szMsg)
 
void incrementTurnCount ()
 
void displayTurnCount (int)
 
void onButtonFinished (bool)
 
void saveSraffanVars ()
 
void restoreSraffanVars ()
 
- Public Member Functions inherited from Bagel::CBagStorageDevWnd
ErrorCode close () override
 
virtual ErrorCode runModal (CBagObject *pObj)
 
void onTimer (uint32 nEventID) override
 
void setOnUpdate (bool bVal=true)
 
bool getOnUpdate () const
 
virtual ErrorCode paintScreen (CBofRect *pRect=nullptr)
 
virtual ErrorCode paintObjects (CBofList< CBagObject *> *list, CBofBitmap *pBmp, CBofRect &viewOffsetRect, CBofList< CBofRect > *=nullptr, bool tempVar=true)
 
virtual CBofRect getLocation ()
 
ErrorCode setBackground (CBofBitmap *pBmp) override
 
CBofBitmapgetBackground () override
 
virtual CBofBitmapgetWorkBmp ()
 
ErrorCode loadFile (const CBofString &sFile) override
 
virtual const CBofStringgetHelpFilename ()
 
void setHelpFilename (const CBofString &s) override
 
virtual ErrorCode onRender (CBofBitmap *pBmp, CBofRect *pRect=nullptr)
 
void onClose () override
 
void onMouseMove (uint32 nFlags, CBofPoint *, void *=nullptr) override
 
- Public Member Functions inherited from Bagel::CBofWindow
 CBofWindow ()
 
 CBofWindow (const char *pszName, int x, int y, int nWidth, int nHeight, CBofWindow *pParent)
 
virtual ~CBofWindow ()
 
virtual ErrorCode create (const char *pszName, int x, int y, int nWidth, int nHeight, CBofWindow *pParent, uint32 nControlID=0)
 
virtual ErrorCode create (const char *pszName, CBofRect *pRect, CBofWindow *pParent, uint32 nControlID=0)
 
virtual void destroy ()
 
virtual void destroyWindow ()
 
void show ()
 
void select ()
 
void hide ()
 
void center ()
 
void move (int x, int y, bool bRepaint=false)
 
void reSize (CBofRect *pRect, bool bRepaint=false)
 
void postMessage (uint32 nMessage, uint32 lParam1, uint32 lParam2)
 
void postUserMessage (uint32 lMessage, uint32 lExtraInfo)
 
void setTimer (uint32 nID, uint32 nInterval, BofCallback pCallBack=nullptr)
 
void killTimer (uint32 nID)
 
void killMyTimers ()
 
CBofWindowgetParent () const
 
void validateAnscestors (CBofRect *pRect=nullptr)
 
void setActive ()
 
CBofRect getWindowRect () const
 
CBofRect getClientRect ()
 
CBofRect getRect () const
 
int width () const
 
int height () const
 
void screenToClient (CBofPoint *pPoint)
 
void selectPalette (CBofPalette *pPal)
 
ErrorCode setBackdrop (CBofBitmap *pNewBitmap, bool bRefresh=false)
 
ErrorCode setBackdrop (const char *pszFileName, bool bRefresh=false)
 
void clearBackdrop ()
 
CBofBitmapgetBackdrop () const
 
bool hasBackdrop () const
 
void killBackdrop ()
 
ErrorCode paintBackdrop (CBofRect *pRect=nullptr, int nTransparentColor=-1)
 
void setControlID (uint32 nID)
 
uint32 getControlID () const
 
void setBkColor (RGBCOLOR cColor)
 
RGBCOLOR getBkColor () const
 
void setFgColor (RGBCOLOR cColor)
 
RGBCOLOR getFgColor () const
 
void setPrevMouseDown (CBofPoint p)
 
CBofPoint getPrevMouseDown () const
 
void setCapture ()
 
void releaseCapture ()
 
bool hasCapture () const
 
void setFocus ()
 
void releaseFocus ()
 
bool hasFocus () const
 
void flushAllMessages ()
 
void validateRect (const CBofRect *pRect)
 
void invalidateRect (const CBofRect *pRect)
 
virtual void onBofScrollBar (CBofObject *pButton, int nNewPos)
 
virtual void onSoundNotify (CBofObject *pObject, uint32 lParam2)
 
virtual void onMovieNotify (uint32 lParam1, uint32 lParam2)
 
virtual void onMCINotify (uint32 wParam, uint32 lParam)
 
virtual void handleEvent (const Common::Event &event)
 
Graphics::ManagedSurfacegetSurface ()
 
bool isCreated () const
 
virtual void enable ()
 
virtual void disable ()
 
bool isVisible () const
 
bool isEnabled () const
 
void updateWindow ()
 
void setParent (CBofWindow *parent)
 
void handleEvents ()
 
void fillWindow (byte iColor)
 
void fillRect (CBofRect *pRect, byte iColor)
 
ErrorCode paintBeveledText (CBofRect *rect, const CBofString &string, int size, int weight, RGBCOLOR color, int justify, uint32 format)
 
- Public Member Functions inherited from Bagel::CLList
 CLList ()
 
 CLList (void *pObj)
 
virtual ~CLList ()
 
void Insert (CLList *pNewList)
 
void Delete ()
 
void addToHead (CLList *pNewList)
 
void addToTail (CLList *pNewList)
 
void MoveToHead ()
 
void MoveToTail ()
 
void MoveLeft ()
 
void MoveRight ()
 
CLListgetHead ()
 
CLListgetTail ()
 
CLListgetPrev () const
 
CLListgetNext () const
 
void * getData () const
 
void PutData (void *pObj)
 
void FlushList ()
 
- Public Member Functions inherited from Bagel::CBofError
void reportError (ErrorCode errCode, const char *format,...)
 
bool errorOccurred () const
 
ErrorCode getErrorCode () const
 
void clearError ()
 
- Public Member Functions inherited from Bagel::CBagStorageDev
virtual ErrorCode preFilter (CBofBitmap *pBmp, CBofRect *pRect, CBofList< CBagObject *> *pList=nullptr)
 
void makeListDirty (CBofList< CBagObject *> *pList)
 
void setDiskID (uint16 nDiskID)
 
uint16 getDiskID () const
 
virtual ErrorCode setloadFilePos (const CBofPoint)
 
bool isCloseup () const
 
void setCloseup (bool b=true)
 
bool isCIC ()
 
void setCIC (bool b=true)
 
bool isCustom () const
 
void setCustom (bool b=true)
 
int getDeviceType () const
 
int getObjectCount ()
 
CBagObjectgetObjectByPos (int nIndex)
 
CBagObjectgetObject (int nRefId, bool bActiveOnly=false)
 
CBagObjectgetObject (const CBofPoint &xPoint, bool bActiveOnly=false)
 
CBagObjectgetObject (const CBofString &sName, bool bActiveOnly=false)
 
CBagObjectgetObjectByType (const CBofString &sType, bool bActiveOnly=false)
 
CBofList< CBagObject * > * getObjectList () const
 
void setObjectList (CBofList< CBagObject *> *pOList, CBofList< CBagExpression *> *pEList=nullptr)
 
bool contains (CBagObject *pObj, bool bActive=true)
 
virtual CBofRect getRect ()
 
virtual void setRect (const CBofRect &xRect)
 
virtual CBofPoint getPosition ()
 
virtual void setPosition (const CBofPoint &pos)
 
virtual ErrorCode addObject (CBagObject *pObj, int nPos=0)
 
virtual ErrorCode activateLocalObject (CBagObject *pObj)
 
virtual ErrorCode activateLocalObject (const CBofString &sName)
 
virtual ErrorCode attachActiveObjects ()
 
virtual ErrorCode removeObject (CBagObject *pRObj)
 
virtual ErrorCode deactivateLocalObject (CBagObject *pObj)
 
virtual ErrorCode deactivateLocalObject (const CBofString &sName)
 
virtual ErrorCode detachActiveObjects ()
 
const CBofStringgetName () const
 
void setName (const CBofString &str)
 
void setFilterId (uint16 nId)
 
uint16 getFilterId () const
 
void setFadeId (uint16 nId)
 
uint16 getFadeId () const
 
const CBofStringgetPrevSDev () const
 
const CBofPoint getPrevLoc () const
 
void setPrevSDev (const CBofString &str)
 
bool getCloseOnOpen () const
 
void setCloseOnOpen (bool bVal)
 
uint16 getExitOnEdge () const
 
void setExitOnEdge (uint16 nVal)
 
CBagObjectgetLActiveObject () const
 
ErrorCode setLActiveObject (CBagObject *pObj)
 
virtual ErrorCode onLActiveObject (uint32, CBofPoint *, void *=nullptr)
 
MouseActivity getLActivity () const
 
void setLActivity (MouseActivity ma)
 
ErrorCode paintStorageDevice (CBofWindow *pWnd, CBofBitmap *pBmp=nullptr, CBofRect *=nullptr)
 
virtual void setAssociateWnd (CBofWindow *pWnd)
 
virtual CBofWindowgetAssociateWnd ()
 
ParseCodes setInfo (CBagIfstream &fpInput) override
 
const CBofStringgetBackgroundName () const
 
virtual ErrorCode loadObjects ()
 
virtual ErrorCode releaseObjects ()
 
virtual ErrorCode noObjectsUnderMouse ()
 
virtual const CBofPoint devPtToViewPort (const CBofPoint &xPoint)
 
virtual const CBofPoint viewPortToDevPt (const CBofPoint &xPoint)
 
virtual ErrorCode loadFileFromStream (CBagIfstream &fpInput, const CBofString &sWldName, bool bAttach=true)
 
virtual ErrorCode onMouseOver (uint32, CBofPoint *, void *=nullptr)
 
virtual ErrorCode onCursorUpdate (int)
 
virtual CBagObjectonNewSpriteObject (const CBofString &sInit)
 
virtual CBagObjectonNewBitmapObject (const CBofString &sInit)
 
virtual CBagObjectonNewTextObject (const CBofString &sInit)
 
virtual CBagObjectonNewLinkObject (const CBofString &sInit)
 
virtual CBagObjectonNewRPObject (const CBofString &sInit)
 
virtual CBagObjectonNewEDObject (const CBofString &sInit)
 
virtual CBagObjectonNewDosObject (const CBofString &sInit)
 
virtual CBagObjectonNewSoundObject (const CBofString &sInit)
 
virtual CBagObjectonNewButtonObject (const CBofString &sInit)
 
virtual CBagObjectonNewCharacterObject (const CBofString &sInit)
 
virtual CBagObjectonNewMovieObject (const CBofString &)
 
virtual CBagObjectonNewCommandObject (const CBofString &sInit)
 
virtual CBagObjectonNewAreaObject (const CBofString &sInit)
 
virtual CBagObjectonNewExpressionObject (const CBofString &sInit)
 
virtual CBagObjectonNewVariableObject (const CBofString &sInit)
 
virtual CBagObjectonNewUserObject (const CBofString &sInit)
 
virtual CBagObjectonNewThingObject (const CBofString &sInit)
 
virtual CBofPoint arrangeFloater (CBofPoint &nPos, CBagObject *pObj)
 
int getNumFloatPages () const
 
void setNumFloatPages (int nFloatPages)
 
void onSetFilter (bool(*filterFunction)(uint16 nFilterId, CBofBitmap *, CBofRect *))
 
FilterFunction getFilter ()
 
bool isFiltered () const
 
- Public Member Functions inherited from Bagel::CBagParseObject
virtual bool isAttached ()
 
int getStringFromStream (CBagIfstream &istr, CBofString &sStr, const CBofString &sEndChars, bool bPutBack=false)
 
int getAlphaNumFromStream (CBagIfstream &istr, CBofString &sStr)
 
int getOperStrFromStream (CBagIfstream &istr, CBofString &sStr)
 
int getIntFromStream (CBagIfstream &istr, int &nNum)
 
int getRectFromStream (CBagIfstream &istr, CBofRect &rect)
 
int getKeywordFromStream (CBagIfstream &istr, KEYWORDS &keyword)
 
int putbackStringOnStream (CBagIfstream &istr, const CBofString &sStr)
 
int parseAlertBox (CBagIfstream &istr, const char *sTitle, const char *sFile, int nLine)
 

Static Public Member Functions

static void setMainScreen ()
 
static CBofBitmapgetComputerBackdrop ()
 
- Static Public Member Functions inherited from Bagel::CBagStorageDevWnd
static void initialize ()
 
- Static Public Member Functions inherited from Bagel::CBofWindow
static ErrorCode initialize ()
 
static ErrorCode shutdown ()
 
static Common::Point getMousePos ()
 
static CBofWindowgetActiveWindow ()
 
static CBofWindowgetWindowList ()
 
- Static Public Member Functions inherited from Bagel::CBofObject
static bool isValidObject (const CBofObject *pObject)
 
- Static Public Member Functions inherited from Bagel::CBofError
static void fatalError (ErrorCode errCode, const char *format,...)
 
static void initialize ()
 
static int getErrorCount ()
 
- Static Public Member Functions inherited from Bagel::CBagStorageDev
static void initialize ()
 
static void shutdown ()
 
static CBofPointgetLastCursorLocation ()
 
static void setDirtyAllObjects (bool b)
 
static bool getDirtyAllObjects ()
 
static void setPreFiltered (bool b=true)
 
static bool getPreFiltered ()
 
static bool preFilterPan ()
 
static void setPreFilterPan (bool b=true)
 
- Static Public Member Functions inherited from Bagel::CBagParseObject
static void initialize ()
 

Protected Types

enum  SrafCompModeC { SC_ON, SC_OFF, SC_DONE }
 
enum  SrafCurScreen {
  SC_MAIN, SC_DEAL, SC_BIDS, SC_BACKGROUND_DATA,
  SC_SELLER_BIOS, SC_OTHER_BIOS, SC_STAFF_BIOS, SC_DISPATCH,
  SC_EMAIL, SC_AUDIO, SC_ORDER, SC_CHECK_TEAMS,
  SC_CODE_WORDS
}
 

Protected Attributes

enum Bagel::SpaceBar::SrafComputer::SrafCompModeC _eMode
 
enum Bagel::SpaceBar::SrafComputer::SrafCurScreen _eCurScreen
 
CBofBmpButton_pButtons [11]
 
RGBCOLOR _cTextColor
 
RGBCOLOR _cTextHiliteColor
 
RGBCOLOR _cTextLineColor
 
CBofListBox_pLBox
 
CBofList< SrafCompItem > * _pMainList
 
CBofList< DealSummarySellerItem > * _pSellerSummaryList
 
CBofList< DealSummaryBuyerItem > * _pBuyerSummaryList
 
CBofList< DispatchedTeamItem > * _pTeamList
 
CBofBitmap_pStafferBmp [6+1]
 
int _nSelection
 
int _nListPointSize
 
int _nListItemHeight
 
SrafTextScreen_pTextOnlyScreen
 
CBofString_pszGroup1Word
 
CBofString_pszGroup2Word
 
bool _bSrafAttached
 
- Protected Attributes inherited from Bagel::CBofWindow
CBofWindow_parent = nullptr
 
Array< CBofWindow * > _children
 
char _szTitle [64] = { 0 }
 
CBofRect _cWindowRect
 
CBofRect _cRect
 
CBofBitmap_pBackdrop = nullptr
 
uint32 _nID = 0
 
RGBCOLOR _cBkColor = RGB(255, 255, 255)
 
RGBCOLOR _cFgColor = RGB(0, 0, 0)
 
bool _bCaptured = false
 
Graphics::ManagedSurface_surface = nullptr
 
CBofPoint _cPrevMouseDown
 
- Protected Attributes inherited from Bagel::CLList
CLList_pPrev
 
CLList_pNext
 
void * _pData
 
- Protected Attributes inherited from Bagel::CBofError
ErrorCode _errCode
 
- Protected Attributes inherited from Bagel::CBagStorageDev
uint16 _xSDevType
 
FilterFunction _pBitmapFilter
 
bool _bForeignList: true
 
bool _bCloseOnOpen: true
 
bool _bCloseup: true
 
bool _bCIC: true
 
bool _bCustom: true
 
bool _bFirstPaint: true
 
int _nFloatPages
 

Static Protected Attributes

static bool _bSwonzaEnlightened
 
static int _nStartingTime
 
static SrafComputer_pHead
 
static bool _bRandomAudio
 
static int _nRandomTime
 
static bool _bFailureNotified
 
- Static Protected Attributes inherited from Bagel::CBofWindow
static CBofWindow_pWindowList
 
static CBofWindow_pActiveWindow
 
static CBofTimerPacket_pTimerList
 
static int _mouseX
 
static int _mouseY
 
- Static Protected Attributes inherited from Bagel::CBofError
static int _count
 
- Static Protected Attributes inherited from Bagel::CBagStorageDev
static CBofPoint_xCursorLocation
 
static CBofRectgRepaintRect
 
static bool _bHandledUpEvent
 
static bool _hidePdaFl
 
static bool _bPanPreFiltered
 
static bool _bDirtyAllObjects
 
static bool _bPreFilter
 

Additional Inherited Members

- Public Types inherited from Bagel::CBagStorageDev
enum  MouseActivity { kMouseNONE = 0x0000, kMouseDRAGGING = 0x0001 }
 
- Public Types inherited from Bagel::CBagParseObject
enum  KEYWORDS {
  UNKNOWN = 0, STORAGEDEV, START_WLD, VARIABLE,
  REMARK, DISKID, CURSOR, SHAREDPAL,
  DISKAUDIO, PDASTATE, SYSSCREEN, WIELDCURSOR
}
 
- Static Public Attributes inherited from Bagel::CBagStorageDevWnd
static CBagEventSDev_pEvtSDev
 
- Protected Member Functions inherited from Bagel::CBagStorageDevWnd
virtual ErrorCode setWorkBmp ()
 
virtual ErrorCode killWorkBmp ()
 
- Protected Member Functions inherited from Bagel::CBofWindow
void checkTimers ()
 
virtual void onLButtonDblClk (uint32 nFlags, CBofPoint *pPoint)
 
virtual void onRButtonDown (uint32 nFlags, CBofPoint *pPoint)
 
virtual void onRButtonUp (uint32 nFlags, CBofPoint *pPoint)
 
virtual void onRButtonDblClk (uint32 nFlags, CBofPoint *pPoint)
 
virtual void onReSize (CBofSize *pSize)
 
virtual void onUserMessage (uint32 nMessage, uint32 lParam)
 
virtual void onActivate ()
 
virtual void onDeActivate ()
 
- Protected Member Functions inherited from Bagel::CBofError
virtual void bofMessageBox (const Common::String &content, const Common::String &title)
 

Member Function Documentation

◆ getAdjustedIndex()

int Bagel::SpaceBar::SrafComputer::getAdjustedIndex ( int  ,
int  ,
bool   
)

Search the specified list and return the index of a true member, if there is one, return the element in the list that has "meet with" set to true.

◆ setMeetingResult()

void Bagel::SpaceBar::SrafComputer::setMeetingResult ( int  ,
int  ,
bool   
)

Search the specified list and return the index of a true member, if there is one, return the element in the list that has "meet with" set to true.

◆ displayTurnCount()

void Bagel::SpaceBar::SrafComputer::displayTurnCount ( int  )

This dynamically updates the turncount on the screen, must know which line to update though.


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