diff options
author | Einar Johan Trøan Sømåen | 2012-07-03 05:08:59 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-03 05:08:59 +0200 |
commit | c27d6585df61efc8b1ff5917de2dc3ae8b5d4248 (patch) | |
tree | bbcf066dcaa050f5e1d2e0561e1f7f1166d4ad5f /engines/wintermute/Base/BRegion.cpp | |
parent | 6c6c0bb0167cbf004cf300a81dda71a952d93626 (diff) | |
download | scummvm-rg350-c27d6585df61efc8b1ff5917de2dc3ae8b5d4248.tar.gz scummvm-rg350-c27d6585df61efc8b1ff5917de2dc3ae8b5d4248.tar.bz2 scummvm-rg350-c27d6585df61efc8b1ff5917de2dc3ae8b5d4248.zip |
WINTERMUTE: Rename FuncName->funcName in ScStack
Diffstat (limited to 'engines/wintermute/Base/BRegion.cpp')
-rw-r--r-- | engines/wintermute/Base/BRegion.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/engines/wintermute/Base/BRegion.cpp b/engines/wintermute/Base/BRegion.cpp index 0a3c9ce9f5..dd0f06334d 100644 --- a/engines/wintermute/Base/BRegion.cpp +++ b/engines/wintermute/Base/BRegion.cpp @@ -216,14 +216,14 @@ HRESULT CBRegion::scCallMethod(CScScript *script, CScStack *stack, CScStack *thi // AddPoint
//////////////////////////////////////////////////////////////////////////
if (strcmp(name, "AddPoint") == 0) {
- stack->CorrectParams(2);
- int X = stack->Pop()->GetInt();
- int Y = stack->Pop()->GetInt();
+ stack->correctParams(2);
+ int X = stack->pop()->GetInt();
+ int Y = stack->pop()->GetInt();
_points.Add(new CBPoint(X, Y));
CreateRegion();
- stack->PushBool(true);
+ stack->pushBool(true);
return S_OK;
}
@@ -232,17 +232,17 @@ HRESULT CBRegion::scCallMethod(CScScript *script, CScStack *stack, CScStack *thi // InsertPoint
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "InsertPoint") == 0) {
- stack->CorrectParams(3);
- int Index = stack->Pop()->GetInt();
- int X = stack->Pop()->GetInt();
- int Y = stack->Pop()->GetInt();
+ stack->correctParams(3);
+ int Index = stack->pop()->GetInt();
+ int X = stack->pop()->GetInt();
+ int Y = stack->pop()->GetInt();
if (Index >= 0 && Index < _points.GetSize()) {
_points.InsertAt(Index, new CBPoint(X, Y));
CreateRegion();
- stack->PushBool(true);
- } else stack->PushBool(false);
+ stack->pushBool(true);
+ } else stack->pushBool(false);
return S_OK;
}
@@ -251,18 +251,18 @@ HRESULT CBRegion::scCallMethod(CScScript *script, CScStack *stack, CScStack *thi // SetPoint
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "SetPoint") == 0) {
- stack->CorrectParams(3);
- int Index = stack->Pop()->GetInt();
- int X = stack->Pop()->GetInt();
- int Y = stack->Pop()->GetInt();
+ stack->correctParams(3);
+ int Index = stack->pop()->GetInt();
+ int X = stack->pop()->GetInt();
+ int Y = stack->pop()->GetInt();
if (Index >= 0 && Index < _points.GetSize()) {
_points[Index]->x = X;
_points[Index]->y = Y;
CreateRegion();
- stack->PushBool(true);
- } else stack->PushBool(false);
+ stack->pushBool(true);
+ } else stack->pushBool(false);
return S_OK;
}
@@ -271,8 +271,8 @@ HRESULT CBRegion::scCallMethod(CScScript *script, CScStack *stack, CScStack *thi // RemovePoint
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "RemovePoint") == 0) {
- stack->CorrectParams(1);
- int Index = stack->Pop()->GetInt();
+ stack->correctParams(1);
+ int Index = stack->pop()->GetInt();
if (Index >= 0 && Index < _points.GetSize()) {
delete _points[Index];
@@ -281,8 +281,8 @@ HRESULT CBRegion::scCallMethod(CScScript *script, CScStack *stack, CScStack *thi _points.RemoveAt(Index);
CreateRegion();
- stack->PushBool(true);
- } else stack->PushBool(false);
+ stack->pushBool(true);
+ } else stack->pushBool(false);
return S_OK;
}
@@ -291,16 +291,16 @@ HRESULT CBRegion::scCallMethod(CScScript *script, CScStack *stack, CScStack *thi // GetPoint
//////////////////////////////////////////////////////////////////////////
else if (strcmp(name, "GetPoint") == 0) {
- stack->CorrectParams(1);
- int Index = stack->Pop()->GetInt();
+ stack->correctParams(1);
+ int Index = stack->pop()->GetInt();
if (Index >= 0 && Index < _points.GetSize()) {
- CScValue *Val = stack->GetPushValue();
+ CScValue *Val = stack->getPushValue();
if (Val) {
Val->SetProperty("X", _points[Index]->x);
Val->SetProperty("Y", _points[Index]->y);
}
- } else stack->PushNULL();
+ } else stack->pushNULL();
return S_OK;
}
|