diff options
Diffstat (limited to 'engines/titanic/core')
-rw-r--r-- | engines/titanic/core/game_object.h | 90 |
1 files changed, 46 insertions, 44 deletions
diff --git a/engines/titanic/core/game_object.h b/engines/titanic/core/game_object.h index b367a0e722..629c6a038d 100644 --- a/engines/titanic/core/game_object.h +++ b/engines/titanic/core/game_object.h @@ -519,41 +519,6 @@ protected: void setMovieFrameRate(double rate); /** - * Set up the text and borders for the object - */ - void setText(const CString &str, int border = 0, int borderRight = 0); - - /** - * Sets whether the text will use borders - */ - void setTextHasBorders(bool hasBorders); - - /** - * Sets the bounds for a previously defined text area - */ - void setTextBounds(); - - /** - * Sets the color for the object's text - */ - void setTextColor(byte r, byte g, byte b); - - /** - * Sets the font number to use for text - */ - void setTextFontNumber(int fontNumber); - - /** - * Gets the width of the text contents - */ - int getTextWidth() const; - - /** - * Returns the text cursor - */ - CTextCursor *getTextCursor() const; - - /** * Gets a new random number */ int getRandomNumber(int max, int *oldVal = nullptr); @@ -738,31 +703,68 @@ public: CGameObject *getHiddenObject(const CString &name) const; /** + * Support function for drag moving + */ + void dragMove(const Point &pt); + + /** + * Returns the currently dragging item (if any) if it's a game object + */ + CGameObject *getDraggingObject() const; + + bool compareRoomFlags(int mode, uint flags1, uint flags2); + + /*--- Text display methods ---*/ + + /** * Sets up credits text */ void createCredits(); /** - * Scroll text up + * Set up the text and borders for the object */ - void scrollTextUp(); + void setText(const CString &str, int border = 0, int borderRight = 0); /** - * Scroll text down + * Sets whether the text will use borders */ - void scrollTextDown(); + void setTextHasBorders(bool hasBorders); /** - * Support function for drag moving + * Sets the bounds for a previously defined text area */ - void dragMove(const Point &pt); + void setTextBounds(); /** - * Returns the currently dragging item (if any) if it's a game object + * Sets the color for the object's text */ - CGameObject *getDraggingObject() const; + void setTextColor(byte r, byte g, byte b); - bool compareRoomFlags(int mode, uint flags1, uint flags2); + /** + * Sets the font number to use for text + */ + void setTextFontNumber(int fontNumber); + + /** + * Gets the width of the text contents + */ + int getTextWidth() const; + + /** + * Scroll text up + */ + void scrollTextUp(); + + /** + * Scroll text down + */ + void scrollTextDown(); + + /** + * Returns the text cursor + */ + CTextCursor *getTextCursor() const; /*--- CGameManager Methods ---*/ |