Skip to content

Commit

Permalink
TONY: Some renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Jun 5, 2012
1 parent 23c95d7 commit 380c86f
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 29 deletions.
6 changes: 3 additions & 3 deletions engines/tony/font.cpp
Expand Up @@ -1798,7 +1798,7 @@ void RMText::SetMaxLineLength(int max) {
maxLineLength = max;
}

void RMText::RemoveThis(CORO_PARAM, bool &result) {
void RMText::removeThis(CORO_PARAM, bool &result) {
// Here we can do checks on the number of frames, time spent, etc.
result = true;
}
Expand Down Expand Up @@ -2064,7 +2064,7 @@ void RMTextDialog::SetAlwaysDisplay(void) {
m_bAlwaysDisplay = true;
}

void RMTextDialog::RemoveThis(CORO_PARAM, bool &result) {
void RMTextDialog::removeThis(CORO_PARAM, bool &result) {
CORO_BEGIN_CONTEXT;
bool expired;
CORO_END_CONTEXT(_ctx);
Expand Down Expand Up @@ -2554,7 +2554,7 @@ void RMDialogChoice::Hide(CORO_PARAM) {
}


void RMDialogChoice::RemoveThis(CORO_PARAM, bool &result) {
void RMDialogChoice::removeThis(CORO_PARAM, bool &result) {
result = bRemoveFromOT;
}

Expand Down
8 changes: 4 additions & 4 deletions engines/tony/font.h
Expand Up @@ -220,7 +220,7 @@ class RMText : public RMGfxWoodyBuffer {
void WriteText(const RMString &text, RMFontColor *font, int *time = NULL);

// Overloaded function to decide when you delete the object from the OT list
virtual void RemoveThis(CORO_PARAM, bool &result);
virtual void removeThis(CORO_PARAM, bool &result);

// Overloading of the Draw to center the text, if necessary
virtual void draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim);
Expand Down Expand Up @@ -261,7 +261,7 @@ class RMTextDialog : public RMText {
void WriteText(const RMString &text, RMFontColor *font, int *time = NULL);

// Overloaded function to decide when you delete the object from the OT list
virtual void RemoveThis(CORO_PARAM, bool &result);
virtual void removeThis(CORO_PARAM, bool &result);

// Overloaded de-registration
virtual void Unregister(void);
Expand Down Expand Up @@ -334,7 +334,7 @@ class RMTextItemName : protected RMText {
bool IsItemSelected();
bool IsNormalItemSelected();

virtual void RemoveThis(CORO_PARAM, bool &result) {
virtual void removeThis(CORO_PARAM, bool &result) {
result = true;
}
};
Expand Down Expand Up @@ -362,7 +362,7 @@ class RMDialogChoice : public RMGfxWoodyBuffer {
void SetSelected(CORO_PARAM, int pos);

public:
virtual void RemoveThis(CORO_PARAM, bool &result);
virtual void removeThis(CORO_PARAM, bool &result);
virtual void draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim);
void Unregister(void);

Expand Down
8 changes: 4 additions & 4 deletions engines/tony/game.cpp
Expand Up @@ -995,7 +995,7 @@ bool RMOptionScreen::IsClosing(void) {
return m_bExit;
}

int RMOptionScreen::Priority() {
int RMOptionScreen::priority() {
// Just below the mouse
return 190;
}
Expand Down Expand Up @@ -1375,7 +1375,7 @@ void RMOptionScreen::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive
CORO_END_CODE;
}

void RMOptionScreen::RemoveThis(CORO_PARAM, bool &result) {
void RMOptionScreen::removeThis(CORO_PARAM, bool &result) {
if (m_bExit)
result = true;
else
Expand Down Expand Up @@ -1523,7 +1523,7 @@ void RMPointer::Close(void) {
}


int RMPointer::Priority() {
int RMPointer::priority() {
// Pointer has minimum priority so it will be drawn last
return 200;
}
Expand Down Expand Up @@ -1569,7 +1569,7 @@ void RMPointer::DoFrame(RMGfxTargetBuffer *bigBuf) {
m_specialPointer[m_nCurSpecialPointer - 1]->DoFrame(bigBuf, false);
}

void RMPointer::RemoveThis(CORO_PARAM, bool &result) {
void RMPointer::removeThis(CORO_PARAM, bool &result) {
// Always remove from the OT list, to support disabling the pointer
result = true;
}
Expand Down
8 changes: 4 additions & 4 deletions engines/tony/game.h
Expand Up @@ -93,7 +93,7 @@ class RMPointer : public RMGfxTask {
void DoFrame(RMGfxTargetBuffer *bigBuf);

// Overloading of priorities
int Priority();
int priority();

// Overloading draw method
virtual void draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim);
Expand All @@ -104,7 +104,7 @@ class RMPointer : public RMGfxTask {
}

// Overloading of the method to see if rising from the list
virtual void RemoveThis(CORO_PARAM, bool &result);
virtual void removeThis(CORO_PARAM, bool &result);

// Sets a new action as current
void SetAction(RMTonyAction action) {
Expand Down Expand Up @@ -272,9 +272,9 @@ class RMOptionScreen : public RMGfxWoodyBuffer {
bool IsClosing();

// Overloaded methods
virtual int Priority();
virtual int priority();
virtual void draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim);
virtual void RemoveThis(CORO_PARAM, bool &result);
virtual void removeThis(CORO_PARAM, bool &result);

// Polling for the option screen
void DoFrame(CORO_PARAM, RMInput *m_input);
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/gfxcore.cpp
Expand Up @@ -1945,7 +1945,7 @@ void RMGfxBox::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim)
* RMGfxClearTask Methods
\****************************************************************************/

int RMGfxClearTask::Priority() {
int RMGfxClearTask::priority() {
// Maximum priority (must be done first)
return 1;
}
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/gfxcore.h
Expand Up @@ -257,7 +257,7 @@ class RMGfxClearTask : public RMGfxTask {
public:
virtual ~RMGfxClearTask() { }

int Priority();
int priority();
virtual void draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim);
virtual void removeThis(CORO_PARAM, bool &result);
};
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/inventory.cpp
Expand Up @@ -231,7 +231,7 @@ void RMInventory::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *pr
CORO_END_CODE;
}

void RMInventory::RemoveThis(CORO_PARAM, bool &result) {
void RMInventory::removeThis(CORO_PARAM, bool &result) {
if (m_state == CLOSED)
result = true;
else
Expand Down
2 changes: 1 addition & 1 deletion engines/tony/inventory.h
Expand Up @@ -98,7 +98,7 @@ class RMInventory : public RMGfxWoodyBuffer {
void Reset(void);

// Overload test for removal from OT list
virtual void RemoveThis(CORO_PARAM, bool &result);
virtual void removeThis(CORO_PARAM, bool &result);

// Overload the drawing of the inventory
virtual void draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim);
Expand Down
10 changes: 5 additions & 5 deletions engines/tony/loc.cpp
Expand Up @@ -715,7 +715,7 @@ void RMItem::draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim) {
}


void RMItem::RemoveThis(CORO_PARAM, bool &result) {
void RMItem::removeThis(CORO_PARAM, bool &result) {
// Remove from the OT list if the current frame is -1 (pattern over)
result = (m_nCurSprite == -1);
}
Expand Down Expand Up @@ -861,7 +861,7 @@ RMWipe::~RMWipe() {
CoroScheduler.closeEvent(m_hEndOfFade);
}

int RMWipe::Priority(void) {
int RMWipe::priority(void) {
return 200;
}

Expand All @@ -871,7 +871,7 @@ void RMWipe::Unregister(void) {
CoroScheduler.setEvent(m_hUnregistered);
}

void RMWipe::RemoveThis(CORO_PARAM, bool &result) {
void RMWipe::removeThis(CORO_PARAM, bool &result) {
result = m_bUnregister;
}

Expand Down Expand Up @@ -1657,7 +1657,7 @@ void RMCharacter::WaitForEndMovement(CORO_PARAM) {
CORO_END_CODE;
}

void RMCharacter::RemoveThis(CORO_PARAM, bool &result) {
void RMCharacter::removeThis(CORO_PARAM, bool &result) {
CORO_BEGIN_CONTEXT;
CORO_END_CONTEXT(_ctx);

Expand All @@ -1666,7 +1666,7 @@ void RMCharacter::RemoveThis(CORO_PARAM, bool &result) {
if (bRemoveFromOT)
result = true;
else
CORO_INVOKE_1(RMItem::RemoveThis, result);
CORO_INVOKE_1(RMItem::removeThis, result);

CORO_END_CODE;
}
Expand Down
10 changes: 5 additions & 5 deletions engines/tony/loc.h
Expand Up @@ -251,13 +251,13 @@ class RMItem : public RMGfxTask {
void SetScrollPosition(const RMPoint &scroll);

// Overloading of check whether to remove from active list
virtual void RemoveThis(CORO_PARAM, bool &result);
virtual void removeThis(CORO_PARAM, bool &result);

// Overloaded Draw
virtual void draw(CORO_PARAM, RMGfxTargetBuffer &bigBuf, RMGfxPrimitive *prim);

// Overloaded priority: it's based on Z ordering
virtual int Priority() {
virtual int priority() {
return m_z;
}

Expand Down Expand Up @@ -454,7 +454,7 @@ class RMCharacter : protected RMItem {

void LinkToBoxes(RMGameBoxes *theBoxes);

virtual void RemoveThis(CORO_PARAM, bool &result);
virtual void removeThis(CORO_PARAM, bool &result);

// Update the position of a character
void DoFrame(CORO_PARAM, RMGfxTargetBuffer *bigBuf, int loc);
Expand Down Expand Up @@ -517,8 +517,8 @@ class RMWipe : public RMGfxTask {
void WaitForFadeEnd(CORO_PARAM);

virtual void Unregister(void);
virtual void RemoveThis(CORO_PARAM, bool &result);
virtual int Priority(void);
virtual void removeThis(CORO_PARAM, bool &result);
virtual int priority(void);
};


Expand Down

0 comments on commit 380c86f

Please sign in to comment.