aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/Base
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/Base')
-rw-r--r--engines/wintermute/Base/BFrame.cpp20
-rw-r--r--engines/wintermute/Base/BFrame.h8
-rw-r--r--engines/wintermute/Base/BGame.cpp18
-rw-r--r--engines/wintermute/Base/BGame.h8
-rw-r--r--engines/wintermute/Base/BKeyboardState.cpp14
-rw-r--r--engines/wintermute/Base/BKeyboardState.h8
-rw-r--r--engines/wintermute/Base/BObject.cpp14
-rw-r--r--engines/wintermute/Base/BObject.h8
-rw-r--r--engines/wintermute/Base/BRegion.cpp14
-rw-r--r--engines/wintermute/Base/BRegion.h8
-rw-r--r--engines/wintermute/Base/BScriptHolder.cpp34
-rw-r--r--engines/wintermute/Base/BScriptHolder.h14
-rw-r--r--engines/wintermute/Base/BScriptable.cpp48
-rw-r--r--engines/wintermute/Base/BScriptable.h34
-rw-r--r--engines/wintermute/Base/BSprite.cpp14
-rw-r--r--engines/wintermute/Base/BSprite.h8
-rw-r--r--engines/wintermute/Base/BSubFrame.cpp14
-rw-r--r--engines/wintermute/Base/BSubFrame.h8
-rw-r--r--engines/wintermute/Base/PartEmitter.cpp14
-rw-r--r--engines/wintermute/Base/PartEmitter.h8
-rw-r--r--engines/wintermute/Base/scriptables/SXArray.cpp8
-rw-r--r--engines/wintermute/Base/scriptables/SXArray.h8
-rw-r--r--engines/wintermute/Base/scriptables/SXDate.cpp10
-rw-r--r--engines/wintermute/Base/scriptables/SXDate.h10
-rw-r--r--engines/wintermute/Base/scriptables/SXFile.cpp14
-rw-r--r--engines/wintermute/Base/scriptables/SXFile.h8
-rw-r--r--engines/wintermute/Base/scriptables/SXMath.cpp4
-rw-r--r--engines/wintermute/Base/scriptables/SXMath.h4
-rw-r--r--engines/wintermute/Base/scriptables/SXMemBuffer.cpp18
-rw-r--r--engines/wintermute/Base/scriptables/SXMemBuffer.h12
-rw-r--r--engines/wintermute/Base/scriptables/SXStore.cpp4
-rw-r--r--engines/wintermute/Base/scriptables/SXStore.h4
-rw-r--r--engines/wintermute/Base/scriptables/SXString.cpp12
-rw-r--r--engines/wintermute/Base/scriptables/SXString.h12
-rw-r--r--engines/wintermute/Base/scriptables/ScScript.cpp10
-rw-r--r--engines/wintermute/Base/scriptables/ScScript.h2
-rw-r--r--engines/wintermute/Base/scriptables/ScValue.cpp34
37 files changed, 245 insertions, 245 deletions
diff --git a/engines/wintermute/Base/BFrame.cpp b/engines/wintermute/Base/BFrame.cpp
index 1f14c4ea8f..cdf3eab96b 100644
--- a/engines/wintermute/Base/BFrame.cpp
+++ b/engines/wintermute/Base/BFrame.cpp
@@ -401,7 +401,7 @@ HRESULT CBFrame::persist(CBPersistMgr *persistMgr) {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-HRESULT CBFrame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CBFrame::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// GetSound
@@ -566,14 +566,14 @@ HRESULT CBFrame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This
//////////////////////////////////////////////////////////////////////////
else {
- if (_subframes.GetSize() == 1) return _subframes[0]->ScCallMethod(Script, Stack, ThisStack, Name);
- else return CBScriptable::ScCallMethod(Script, Stack, ThisStack, Name);
+ if (_subframes.GetSize() == 1) return _subframes[0]->scCallMethod(Script, Stack, ThisStack, Name);
+ else return CBScriptable::scCallMethod(Script, Stack, ThisStack, Name);
}
}
//////////////////////////////////////////////////////////////////////////
-CScValue *CBFrame::ScGetProperty(const char *Name) {
+CScValue *CBFrame::scGetProperty(const char *Name) {
if (!_scValue) _scValue = new CScValue(Game);
_scValue->SetNULL();
@@ -643,14 +643,14 @@ CScValue *CBFrame::ScGetProperty(const char *Name) {
//////////////////////////////////////////////////////////////////////////
else {
- if (_subframes.GetSize() == 1) return _subframes[0]->ScGetProperty(Name);
- else return CBScriptable::ScGetProperty(Name);
+ if (_subframes.GetSize() == 1) return _subframes[0]->scGetProperty(Name);
+ else return CBScriptable::scGetProperty(Name);
}
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBFrame::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CBFrame::scSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
// Delay
//////////////////////////////////////////////////////////////////////////
@@ -693,14 +693,14 @@ HRESULT CBFrame::ScSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
else {
- if (_subframes.GetSize() == 1) return _subframes[0]->ScSetProperty(Name, Value);
- else return CBScriptable::ScSetProperty(Name, Value);
+ if (_subframes.GetSize() == 1) return _subframes[0]->scSetProperty(Name, Value);
+ else return CBScriptable::scSetProperty(Name, Value);
}
}
//////////////////////////////////////////////////////////////////////////
-const char *CBFrame::ScToString() {
+const char *CBFrame::scToString() {
return "[frame]";
}
diff --git a/engines/wintermute/Base/BFrame.h b/engines/wintermute/Base/BFrame.h
index ac7c88fbf7..64887bd802 100644
--- a/engines/wintermute/Base/BFrame.h
+++ b/engines/wintermute/Base/BFrame.h
@@ -61,10 +61,10 @@ public:
CBArray<const char *, const char *> _applyEvent;
// scripting interface
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- virtual const char *ScToString();
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scSetProperty(const char *Name, CScValue *Value);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual const char *scToString();
};
diff --git a/engines/wintermute/Base/BGame.cpp b/engines/wintermute/Base/BGame.cpp
index 3ccd6d6a12..c54f73fd49 100644
--- a/engines/wintermute/Base/BGame.cpp
+++ b/engines/wintermute/Base/BGame.cpp
@@ -978,7 +978,7 @@ HRESULT CBGame::LoadBuffer(byte *Buffer, bool Complete) {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CBGame::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// LOG
//////////////////////////////////////////////////////////////////////////
@@ -993,7 +993,7 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
// Caption
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "Caption") == 0) {
- HRESULT res = CBObject::ScCallMethod(Script, Stack, ThisStack, Name);
+ HRESULT res = CBObject::scCallMethod(Script, Stack, ThisStack, Name);
SetWindowTitle();
return res;
}
@@ -2160,12 +2160,12 @@ HRESULT CBGame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisS
return S_OK;
}
- else return CBObject::ScCallMethod(Script, Stack, ThisStack, Name);
+ else return CBObject::scCallMethod(Script, Stack, ThisStack, Name);
}
//////////////////////////////////////////////////////////////////////////
-CScValue *CBGame::ScGetProperty(const char *Name) {
+CScValue *CBGame::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -2551,12 +2551,12 @@ CScValue *CBGame::ScGetProperty(const char *Name) {
return _scValue;
}
- else return CBObject::ScGetProperty(Name);
+ else return CBObject::scGetProperty(Name);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBGame::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CBGame::scSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
// Name
//////////////////////////////////////////////////////////////////////////
@@ -2588,7 +2588,7 @@ HRESULT CBGame::ScSetProperty(const char *Name, CScValue *Value) {
// Caption
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "Name") == 0) {
- HRESULT res = CBObject::ScSetProperty(Name, Value);
+ HRESULT res = CBObject::scSetProperty(Name, Value);
SetWindowTitle();
return res;
}
@@ -2746,12 +2746,12 @@ HRESULT CBGame::ScSetProperty(const char *Name, CScValue *Value) {
return S_OK;
}
- else return CBObject::ScSetProperty(Name, Value);
+ else return CBObject::scSetProperty(Name, Value);
}
//////////////////////////////////////////////////////////////////////////
-const char *CBGame::ScToString() {
+const char *CBGame::scToString() {
return "[game object]";
}
diff --git a/engines/wintermute/Base/BGame.h b/engines/wintermute/Base/BGame.h
index e920fab2b9..ecbad813c6 100644
--- a/engines/wintermute/Base/BGame.h
+++ b/engines/wintermute/Base/BGame.h
@@ -225,10 +225,10 @@ public:
virtual void PublishNatives();
virtual HRESULT ExternalCall(CScScript *Script, CScStack *Stack, CScStack *ThisStack, char *Name);
// scripting interface
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- virtual const char *ScToString();
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scSetProperty(const char *Name, CScValue *Value);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual const char *scToString();
// compatibility bits
bool _compatKillMethodThreads;
diff --git a/engines/wintermute/Base/BKeyboardState.cpp b/engines/wintermute/Base/BKeyboardState.cpp
index 2d95c34d4f..953270c03b 100644
--- a/engines/wintermute/Base/BKeyboardState.cpp
+++ b/engines/wintermute/Base/BKeyboardState.cpp
@@ -73,7 +73,7 @@ void CBKeyboardState::handleKeyRelease(Common::Event *event) {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-HRESULT CBKeyboardState::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CBKeyboardState::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// IsKeyDown
//////////////////////////////////////////////////////////////////////////
@@ -98,12 +98,12 @@ HRESULT CBKeyboardState::ScCallMethod(CScScript *Script, CScStack *Stack, CScSta
return S_OK;
}
- else return CBScriptable::ScCallMethod(Script, Stack, ThisStack, Name);
+ else return CBScriptable::scCallMethod(Script, Stack, ThisStack, Name);
}
//////////////////////////////////////////////////////////////////////////
-CScValue *CBKeyboardState::ScGetProperty(const char *Name) {
+CScValue *CBKeyboardState::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -168,12 +168,12 @@ CScValue *CBKeyboardState::ScGetProperty(const char *Name) {
return _scValue;
}
- else return CBScriptable::ScGetProperty(Name);
+ else return CBScriptable::scGetProperty(Name);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBKeyboardState::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CBKeyboardState::scSetProperty(const char *Name, CScValue *Value) {
/*
//////////////////////////////////////////////////////////////////////////
// Name
@@ -184,12 +184,12 @@ HRESULT CBKeyboardState::ScSetProperty(const char *Name, CScValue *Value) {
return S_OK;
}
- else*/ return CBScriptable::ScSetProperty(Name, Value);
+ else*/ return CBScriptable::scSetProperty(Name, Value);
}
//////////////////////////////////////////////////////////////////////////
-const char *CBKeyboardState::ScToString() {
+const char *CBKeyboardState::scToString() {
return "[keyboard state]";
}
diff --git a/engines/wintermute/Base/BKeyboardState.h b/engines/wintermute/Base/BKeyboardState.h
index 0db409f64b..d5b61cfb9a 100644
--- a/engines/wintermute/Base/BKeyboardState.h
+++ b/engines/wintermute/Base/BKeyboardState.h
@@ -59,10 +59,10 @@ public:
static bool IsAltDown();
// scripting interface
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- virtual const char *ScToString();
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scSetProperty(const char *Name, CScValue *Value);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual const char *scToString();
private:
uint8 *_keyStates;
diff --git a/engines/wintermute/Base/BObject.cpp b/engines/wintermute/Base/BObject.cpp
index 66de667645..92ac56f5de 100644
--- a/engines/wintermute/Base/BObject.cpp
+++ b/engines/wintermute/Base/BObject.cpp
@@ -165,7 +165,7 @@ HRESULT CBObject::Listen(CBScriptHolder *param1, uint32 param2) {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-HRESULT CBObject::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CBObject::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// SkipTo
@@ -468,12 +468,12 @@ HRESULT CBObject::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *Thi
return S_OK;
}
- else return CBScriptHolder::ScCallMethod(Script, Stack, ThisStack, Name);
+ else return CBScriptHolder::scCallMethod(Script, Stack, ThisStack, Name);
}
//////////////////////////////////////////////////////////////////////////
-CScValue *CBObject::ScGetProperty(const char *Name) {
+CScValue *CBObject::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -661,12 +661,12 @@ CScValue *CBObject::ScGetProperty(const char *Name) {
return _scValue;
}
- else return CBScriptHolder::ScGetProperty(Name);
+ else return CBScriptHolder::scGetProperty(Name);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBObject::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CBObject::scSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
// Caption
//////////////////////////////////////////////////////////////////////////
@@ -840,12 +840,12 @@ HRESULT CBObject::ScSetProperty(const char *Name, CScValue *Value) {
return S_OK;
}
- else return CBScriptHolder::ScSetProperty(Name, Value);
+ else return CBScriptHolder::scSetProperty(Name, Value);
}
//////////////////////////////////////////////////////////////////////////
-const char *CBObject::ScToString() {
+const char *CBObject::scToString() {
return "[object]";
}
diff --git a/engines/wintermute/Base/BObject.h b/engines/wintermute/Base/BObject.h
index 20bc17baac..8bd980a710 100644
--- a/engines/wintermute/Base/BObject.h
+++ b/engines/wintermute/Base/BObject.h
@@ -133,10 +133,10 @@ public:
public:
// scripting interface
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- virtual const char *ScToString();
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scSetProperty(const char *Name, CScValue *Value);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual const char *scToString();
};
} // end of namespace WinterMute
diff --git a/engines/wintermute/Base/BRegion.cpp b/engines/wintermute/Base/BRegion.cpp
index 355070ba26..867cc33cfe 100644
--- a/engines/wintermute/Base/BRegion.cpp
+++ b/engines/wintermute/Base/BRegion.cpp
@@ -210,7 +210,7 @@ HRESULT CBRegion::LoadBuffer(byte *Buffer, bool Complete) {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-HRESULT CBRegion::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CBRegion::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// AddPoint
@@ -305,12 +305,12 @@ HRESULT CBRegion::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *Thi
return S_OK;
}
- else return CBObject::ScCallMethod(Script, Stack, ThisStack, Name);
+ else return CBObject::scCallMethod(Script, Stack, ThisStack, Name);
}
//////////////////////////////////////////////////////////////////////////
-CScValue *CBRegion::ScGetProperty(const char *Name) {
+CScValue *CBRegion::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -345,12 +345,12 @@ CScValue *CBRegion::ScGetProperty(const char *Name) {
return _scValue;
}
- else return CBObject::ScGetProperty(Name);
+ else return CBObject::scGetProperty(Name);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBRegion::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CBRegion::scSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
// Name
//////////////////////////////////////////////////////////////////////////
@@ -367,12 +367,12 @@ HRESULT CBRegion::ScSetProperty(const char *Name, CScValue *Value) {
return S_OK;
}
- else return CBObject::ScSetProperty(Name, Value);
+ else return CBObject::scSetProperty(Name, Value);
}
//////////////////////////////////////////////////////////////////////////
-const char *CBRegion::ScToString() {
+const char *CBRegion::scToString() {
return "[region]";
}
diff --git a/engines/wintermute/Base/BRegion.h b/engines/wintermute/Base/BRegion.h
index c2fe086655..0a4549d003 100644
--- a/engines/wintermute/Base/BRegion.h
+++ b/engines/wintermute/Base/BRegion.h
@@ -57,10 +57,10 @@ public:
virtual HRESULT SaveAsText(CBDynBuffer *Buffer, int Indent, const char *NameOverride = NULL);
// scripting interface
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- virtual const char *ScToString();
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scSetProperty(const char *Name, CScValue *Value);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual const char *scToString();
};
} // end of namespace WinterMute
diff --git a/engines/wintermute/Base/BScriptHolder.cpp b/engines/wintermute/Base/BScriptHolder.cpp
index a721619538..0b4d09641e 100644
--- a/engines/wintermute/Base/BScriptHolder.cpp
+++ b/engines/wintermute/Base/BScriptHolder.cpp
@@ -109,7 +109,7 @@ HRESULT CBScriptHolder::Listen(CBScriptHolder *param1, uint32 param2) {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-HRESULT CBScriptHolder::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CBScriptHolder::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// DEBUG_CrashMe
//////////////////////////////////////////////////////////////////////////
@@ -152,7 +152,7 @@ HRESULT CBScriptHolder::ScCallMethod(CScScript *Script, CScStack *Stack, CScStac
//////////////////////////////////////////////////////////////////////////
else if (strcmp(Name, "CanHandleMethod") == 0) {
Stack->CorrectParams(1);
- Stack->PushBool(CanHandleMethod(Stack->Pop()->GetString()));
+ Stack->PushBool(canHandleMethod(Stack->Pop()->GetString()));
return S_OK;
}
@@ -203,12 +203,12 @@ HRESULT CBScriptHolder::ScCallMethod(CScScript *Script, CScStack *Stack, CScStac
Stack->PushBool(ret);
return S_OK;
- } else return CBScriptable::ScCallMethod(Script, Stack, ThisStack, Name);
+ } else return CBScriptable::scCallMethod(Script, Stack, ThisStack, Name);
}
//////////////////////////////////////////////////////////////////////////
-CScValue *CBScriptHolder::ScGetProperty(const char *Name) {
+CScValue *CBScriptHolder::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -235,24 +235,24 @@ CScValue *CBScriptHolder::ScGetProperty(const char *Name) {
return _scValue;
}
- else return CBScriptable::ScGetProperty(Name);
+ else return CBScriptable::scGetProperty(Name);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBScriptHolder::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CBScriptHolder::scSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
// Name
//////////////////////////////////////////////////////////////////////////
if (strcmp(Name, "Name") == 0) {
SetName(Value->GetString());
return S_OK;
- } else return CBScriptable::ScSetProperty(Name, Value);
+ } else return CBScriptable::scSetProperty(Name, Value);
}
//////////////////////////////////////////////////////////////////////////
-const char *CBScriptHolder::ScToString() {
+const char *CBScriptHolder::scToString() {
return "[script_holder]";
}
@@ -331,9 +331,9 @@ bool CBScriptHolder::CanHandleEvent(const char *EventName) {
//////////////////////////////////////////////////////////////////////////
-bool CBScriptHolder::CanHandleMethod(const char *MethodName) {
+bool CBScriptHolder::canHandleMethod(const char *MethodName) {
for (int i = 0; i < _scripts.GetSize(); i++) {
- if (!_scripts[i]->_thread && _scripts[i]->CanHandleMethod(MethodName)) return true;
+ if (!_scripts[i]->_thread && _scripts[i]->canHandleMethod(MethodName)) return true;
}
return false;
}
@@ -405,7 +405,7 @@ HRESULT CBScriptHolder::ParseProperty(byte *Buffer, bool Complete) {
CScValue *val = new CScValue(Game);
val->SetString(PropValue);
- ScSetProperty(PropName, val);
+ scSetProperty(PropName, val);
delete val;
delete[] PropName;
@@ -427,16 +427,16 @@ void CBScriptHolder::MakeFreezable(bool Freezable) {
//////////////////////////////////////////////////////////////////////////
-CScScript *CBScriptHolder::InvokeMethodThread(const char *MethodName) {
+CScScript *CBScriptHolder::invokeMethodThread(const char *methodName) {
for (int i = _scripts.GetSize() - 1; i >= 0; i--) {
- if (_scripts[i]->CanHandleMethod(MethodName)) {
+ if (_scripts[i]->canHandleMethod(methodName)) {
CScScript *thread = new CScScript(Game, _scripts[i]->_engine);
if (thread) {
- HRESULT ret = thread->CreateMethodThread(_scripts[i], MethodName);
+ HRESULT ret = thread->CreateMethodThread(_scripts[i], methodName);
if (SUCCEEDED(ret)) {
_scripts[i]->_engine->_scripts.Add(thread);
- Game->GetDebugMgr()->OnScriptMethodThreadInit(thread, _scripts[i], MethodName);
+ Game->GetDebugMgr()->OnScriptMethodThreadInit(thread, _scripts[i], methodName);
return thread;
} else {
@@ -450,8 +450,8 @@ CScScript *CBScriptHolder::InvokeMethodThread(const char *MethodName) {
//////////////////////////////////////////////////////////////////////////
-void CBScriptHolder::ScDebuggerDesc(char *Buf, int BufSize) {
- strcpy(Buf, ScToString());
+void CBScriptHolder::scDebuggerDesc(char *Buf, int BufSize) {
+ strcpy(Buf, scToString());
if (_name && strcmp(_name, "<unnamed>") != 0) {
strcat(Buf, " Name: ");
strcat(Buf, _name);
diff --git a/engines/wintermute/Base/BScriptHolder.h b/engines/wintermute/Base/BScriptHolder.h
index 83df7dc3e0..efedb093a0 100644
--- a/engines/wintermute/Base/BScriptHolder.h
+++ b/engines/wintermute/Base/BScriptHolder.h
@@ -41,10 +41,10 @@ public:
CBScriptHolder(CBGame *inGame);
virtual ~CBScriptHolder();
- virtual CScScript *InvokeMethodThread(const char *MethodName);
+ virtual CScScript *invokeMethodThread(const char *MethodName);
virtual void MakeFreezable(bool Freezable);
bool CanHandleEvent(const char *EventName);
- virtual bool CanHandleMethod(const char *EventMethod);
+ virtual bool canHandleMethod(const char *EventMethod);
HRESULT Cleanup();
HRESULT RemoveScript(CScScript *Script);
HRESULT AddScript(const char *Filename);
@@ -59,11 +59,11 @@ public:
CBArray<CScScript *, CScScript *> _scripts;
// scripting interface
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- virtual const char *ScToString();
- virtual void ScDebuggerDesc(char *Buf, int BufSize);
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scSetProperty(const char *Name, CScValue *Value);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual const char *scToString();
+ virtual void scDebuggerDesc(char *Buf, int BufSize);
// IWmeObject
public:
virtual bool SendEvent(const char *EventName);
diff --git a/engines/wintermute/Base/BScriptable.cpp b/engines/wintermute/Base/BScriptable.cpp
index 38a3325f91..d75f6c1994 100644
--- a/engines/wintermute/Base/BScriptable.cpp
+++ b/engines/wintermute/Base/BScriptable.cpp
@@ -36,13 +36,13 @@ namespace WinterMute {
IMPLEMENT_PERSISTENT(CBScriptable, false)
//////////////////////////////////////////////////////////////////////////
-CBScriptable::CBScriptable(CBGame *inGame, bool NoValue, bool Persistable): CBNamedObject(inGame) {
+CBScriptable::CBScriptable(CBGame *inGame, bool noValue, bool persistable): CBNamedObject(inGame) {
_refCount = 0;
- if (NoValue) _scValue = NULL;
+ if (noValue) _scValue = NULL;
else _scValue = new CScValue(Game);
- _persistable = Persistable;
+ _persistable = persistable;
_scProp = NULL;
}
@@ -61,7 +61,7 @@ CBScriptable::~CBScriptable() {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-HRESULT CBScriptable::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CBScriptable::scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name) {
/*
Stack->CorrectParams(0);
Stack->PushNULL();
@@ -74,67 +74,67 @@ HRESULT CBScriptable::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack
//////////////////////////////////////////////////////////////////////////
-CScValue *CBScriptable::ScGetProperty(const char *Name) {
+CScValue *CBScriptable::scGetProperty(const char *name) {
if (!_scProp) _scProp = new CScValue(Game);
- if (_scProp) return _scProp->GetProp(Name);
+ if (_scProp) return _scProp->GetProp(name);
else return NULL;
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBScriptable::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CBScriptable::scSetProperty(const char *name, CScValue *value) {
if (!_scProp) _scProp = new CScValue(Game);
- if (_scProp) return _scProp->SetProp(Name, Value);
+ if (_scProp) return _scProp->SetProp(name, value);
else return E_FAIL;
}
//////////////////////////////////////////////////////////////////////////
-const char *CBScriptable::ScToString() {
+const char *CBScriptable::scToString() {
return "[native object]";
}
//////////////////////////////////////////////////////////////////////////
-void *CBScriptable::ScToMemBuffer() {
+void *CBScriptable::scToMemBuffer() {
return (void *)NULL;
}
//////////////////////////////////////////////////////////////////////////
-int CBScriptable::ScToInt() {
+int CBScriptable::scToInt() {
return 0;
}
//////////////////////////////////////////////////////////////////////////
-double CBScriptable::ScToFloat() {
+double CBScriptable::scToFloat() {
return 0.0f;
}
//////////////////////////////////////////////////////////////////////////
-bool CBScriptable::ScToBool() {
+bool CBScriptable::scToBool() {
return false;
}
//////////////////////////////////////////////////////////////////////////
-void CBScriptable::ScSetString(const char *Val) {
+void CBScriptable::scSetString(const char *val) {
}
//////////////////////////////////////////////////////////////////////////
-void CBScriptable::ScSetInt(int Val) {
+void CBScriptable::scSetInt(int val) {
}
//////////////////////////////////////////////////////////////////////////
-void CBScriptable::ScSetFloat(double Val) {
+void CBScriptable::scSetFloat(double val) {
}
//////////////////////////////////////////////////////////////////////////
-void CBScriptable::ScSetBool(bool Val) {
+void CBScriptable::scSetBool(bool val) {
}
@@ -150,25 +150,25 @@ HRESULT CBScriptable::persist(CBPersistMgr *persistMgr) {
//////////////////////////////////////////////////////////////////////////
-int CBScriptable::ScCompare(CBScriptable *Val) {
+int CBScriptable::scCompare(CBScriptable *Val) {
if (this < Val) return -1;
else if (this > Val) return 1;
else return 0;
}
//////////////////////////////////////////////////////////////////////////
-void CBScriptable::ScDebuggerDesc(char *Buf, int BufSize) {
- strcpy(Buf, ScToString());
+void CBScriptable::scDebuggerDesc(char *buf, int bufSize) {
+ strcpy(buf, scToString());
}
//////////////////////////////////////////////////////////////////////////
-bool CBScriptable::CanHandleMethod(const char *EventMethod) {
+bool CBScriptable::canHandleMethod(const char *eventMethod) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-CScScript *CBScriptable::InvokeMethodThread(const char *MethodName) {
+CScScript *CBScriptable::invokeMethodThread(const char *methodName) {
return NULL;
}
@@ -181,8 +181,8 @@ const char *CBScriptable::DbgGetNativeClass() {
}
//////////////////////////////////////////////////////////////////////////
-IWmeDebugProp *CBScriptable::DbgGetProperty(const char *Name) {
- return ScGetProperty(Name);
+IWmeDebugProp *CBScriptable::DbgGetProperty(const char *name) {
+ return scGetProperty(name);
}
} // end of namespace WinterMute
diff --git a/engines/wintermute/Base/BScriptable.h b/engines/wintermute/Base/BScriptable.h
index 0ee7808445..40e7460b92 100644
--- a/engines/wintermute/Base/BScriptable.h
+++ b/engines/wintermute/Base/BScriptable.h
@@ -42,28 +42,28 @@ class CScScript;
class CBScriptable : public CBNamedObject, public IWmeDebugObject {
public:
- virtual CScScript *InvokeMethodThread(const char *MethodName);
+ virtual CScScript *invokeMethodThread(const char *methodName);
DECLARE_PERSISTENT(CBScriptable, CBNamedObject)
- CBScriptable(CBGame *inGame, bool NoValue = false, bool Persistable = true);
+ CBScriptable(CBGame *inGame, bool noValue = false, bool persistable = true);
virtual ~CBScriptable();
// high level scripting interface
- virtual bool CanHandleMethod(const char *EventMethod);
- virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- virtual const char *ScToString();
- virtual void *ScToMemBuffer();
- virtual int ScToInt();
- virtual double ScToFloat();
- virtual bool ScToBool();
- virtual void ScSetString(const char *Val);
- virtual void ScSetInt(int Val);
- virtual void ScSetFloat(double Val);
- virtual void ScSetBool(bool Val);
- virtual int ScCompare(CBScriptable *Val);
- virtual void ScDebuggerDesc(char *Buf, int BufSize);
+ virtual bool canHandleMethod(const char *eventMethod);
+ virtual HRESULT scSetProperty(const char *name, CScValue *value);
+ virtual CScValue *scGetProperty(const char *name);
+ virtual HRESULT scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name);
+ virtual const char *scToString();
+ virtual void *scToMemBuffer();
+ virtual int scToInt();
+ virtual double scToFloat();
+ virtual bool scToBool();
+ virtual void scSetString(const char *val);
+ virtual void scSetInt(int val);
+ virtual void scSetFloat(double val);
+ virtual void scSetBool(bool val);
+ virtual int scCompare(CBScriptable *val);
+ virtual void scDebuggerDesc(char *buf, int bufSize);
int _refCount;
CScValue *_scValue;
CScValue *_scProp;
diff --git a/engines/wintermute/Base/BSprite.cpp b/engines/wintermute/Base/BSprite.cpp
index f4f6e8b232..ae88a17d44 100644
--- a/engines/wintermute/Base/BSprite.cpp
+++ b/engines/wintermute/Base/BSprite.cpp
@@ -507,7 +507,7 @@ HRESULT CBSprite::persist(CBPersistMgr *persistMgr) {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSprite::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CBSprite::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// GetFrame
//////////////////////////////////////////////////////////////////////////
@@ -626,12 +626,12 @@ HRESULT CBSprite::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *Thi
return S_OK;
}
- else return CBScriptHolder::ScCallMethod(Script, Stack, ThisStack, Name);
+ else return CBScriptHolder::scCallMethod(Script, Stack, ThisStack, Name);
}
//////////////////////////////////////////////////////////////////////////
-CScValue *CBSprite::ScGetProperty(const char *Name) {
+CScValue *CBSprite::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -699,12 +699,12 @@ CScValue *CBSprite::ScGetProperty(const char *Name) {
return _scValue;
}
- else return CBScriptHolder::ScGetProperty(Name);
+ else return CBScriptHolder::scGetProperty(Name);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSprite::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CBSprite::scSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
// CurrentFrame
//////////////////////////////////////////////////////////////////////////
@@ -733,12 +733,12 @@ HRESULT CBSprite::ScSetProperty(const char *Name, CScValue *Value) {
return S_OK;
}
- else return CBScriptHolder::ScSetProperty(Name, Value);
+ else return CBScriptHolder::scSetProperty(Name, Value);
}
//////////////////////////////////////////////////////////////////////////
-const char *CBSprite::ScToString() {
+const char *CBSprite::scToString() {
return "[sprite]";
}
diff --git a/engines/wintermute/Base/BSprite.h b/engines/wintermute/Base/BSprite.h
index 8fa1656b37..faa74b4ba3 100644
--- a/engines/wintermute/Base/BSprite.h
+++ b/engines/wintermute/Base/BSprite.h
@@ -79,10 +79,10 @@ public:
HRESULT SaveAsText(CBDynBuffer *Buffer, int Indent);
// scripting interface
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- virtual const char *ScToString();
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scSetProperty(const char *Name, CScValue *Value);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual const char *scToString();
};
} // end of namespace WinterMute
diff --git a/engines/wintermute/Base/BSubFrame.cpp b/engines/wintermute/Base/BSubFrame.cpp
index 5ab1a10a9b..b63ccc0d3c 100644
--- a/engines/wintermute/Base/BSubFrame.cpp
+++ b/engines/wintermute/Base/BSubFrame.cpp
@@ -342,7 +342,7 @@ HRESULT CBSubFrame::persist(CBPersistMgr *persistMgr) {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSubFrame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CBSubFrame::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// GetImage
@@ -378,12 +378,12 @@ HRESULT CBSubFrame::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *T
return S_OK;
}
- else return CBScriptable::ScCallMethod(Script, Stack, ThisStack, Name);
+ else return CBScriptable::scCallMethod(Script, Stack, ThisStack, Name);
}
//////////////////////////////////////////////////////////////////////////
-CScValue *CBSubFrame::ScGetProperty(const char *Name) {
+CScValue *CBSubFrame::scGetProperty(const char *Name) {
if (!_scValue) _scValue = new CScValue(Game);
_scValue->SetNULL();
@@ -468,12 +468,12 @@ CScValue *CBSubFrame::ScGetProperty(const char *Name) {
return _scValue;
}
- else return CBScriptable::ScGetProperty(Name);
+ else return CBScriptable::scGetProperty(Name);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBSubFrame::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CBSubFrame::scSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
// AlphaColor
//////////////////////////////////////////////////////////////////////////
@@ -538,12 +538,12 @@ HRESULT CBSubFrame::ScSetProperty(const char *Name, CScValue *Value) {
return S_OK;
}
- else return CBScriptable::ScSetProperty(Name, Value);
+ else return CBScriptable::scSetProperty(Name, Value);
}
//////////////////////////////////////////////////////////////////////////
-const char *CBSubFrame::ScToString() {
+const char *CBSubFrame::scToString() {
return "[subframe]";
}
diff --git a/engines/wintermute/Base/BSubFrame.h b/engines/wintermute/Base/BSubFrame.h
index 00462b1298..fb91e66a21 100644
--- a/engines/wintermute/Base/BSubFrame.h
+++ b/engines/wintermute/Base/BSubFrame.h
@@ -73,10 +73,10 @@ public:
CBSurface *_surface;
// scripting interface
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- virtual const char *ScToString();
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scSetProperty(const char *Name, CScValue *Value);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual const char *scToString();
};
diff --git a/engines/wintermute/Base/PartEmitter.cpp b/engines/wintermute/Base/PartEmitter.cpp
index 89de02a074..2ff9a56679 100644
--- a/engines/wintermute/Base/PartEmitter.cpp
+++ b/engines/wintermute/Base/PartEmitter.cpp
@@ -416,7 +416,7 @@ HRESULT CPartEmitter::RemoveForce(const char *Name) {
//////////////////////////////////////////////////////////////////////////
// high level scripting interface
//////////////////////////////////////////////////////////////////////////
-HRESULT CPartEmitter::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CPartEmitter::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// SetBorder
//////////////////////////////////////////////////////////////////////////
@@ -558,11 +558,11 @@ HRESULT CPartEmitter::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack
return S_OK;
}
- else return CBObject::ScCallMethod(Script, Stack, ThisStack, Name);
+ else return CBObject::scCallMethod(Script, Stack, ThisStack, Name);
}
//////////////////////////////////////////////////////////////////////////
-CScValue *CPartEmitter::ScGetProperty(const char *Name) {
+CScValue *CPartEmitter::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -829,12 +829,12 @@ CScValue *CPartEmitter::ScGetProperty(const char *Name) {
return _scValue;
}
- else return CBObject::ScGetProperty(Name);
+ else return CBObject::scGetProperty(Name);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CPartEmitter::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CPartEmitter::scSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
// X
//////////////////////////////////////////////////////////////////////////
@@ -1086,12 +1086,12 @@ HRESULT CPartEmitter::ScSetProperty(const char *Name, CScValue *Value) {
return S_OK;
}
- else return CBObject::ScSetProperty(Name, Value);
+ else return CBObject::scSetProperty(Name, Value);
}
//////////////////////////////////////////////////////////////////////////
-const char *CPartEmitter::ScToString() {
+const char *CPartEmitter::scToString() {
return "[particle emitter]";
}
diff --git a/engines/wintermute/Base/PartEmitter.h b/engines/wintermute/Base/PartEmitter.h
index 76d4bcdbd2..45997b280e 100644
--- a/engines/wintermute/Base/PartEmitter.h
+++ b/engines/wintermute/Base/PartEmitter.h
@@ -117,10 +117,10 @@ public:
CBArray<CPartForce *, CPartForce *> _forces;
// scripting interface
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScSetProperty(const char *Name, CScValue *Value);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- virtual const char *ScToString();
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scSetProperty(const char *Name, CScValue *Value);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual const char *scToString();
private:
diff --git a/engines/wintermute/Base/scriptables/SXArray.cpp b/engines/wintermute/Base/scriptables/SXArray.cpp
index 41b3514f92..b7d69bd2f2 100644
--- a/engines/wintermute/Base/scriptables/SXArray.cpp
+++ b/engines/wintermute/Base/scriptables/SXArray.cpp
@@ -73,7 +73,7 @@ CSXArray::~CSXArray() {
//////////////////////////////////////////////////////////////////////////
-const char *CSXArray::ScToString() {
+const char *CSXArray::scToString() {
static char Dummy[32768];
strcpy(Dummy, "");
char PropName[20];
@@ -93,7 +93,7 @@ const char *CSXArray::ScToString() {
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXArray::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CSXArray::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// Push
//////////////////////////////////////////////////////////////////////////
@@ -134,7 +134,7 @@ HRESULT CSXArray::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *Thi
//////////////////////////////////////////////////////////////////////////
-CScValue *CSXArray::ScGetProperty(const char *Name) {
+CScValue *CSXArray::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -166,7 +166,7 @@ CScValue *CSXArray::ScGetProperty(const char *Name) {
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXArray::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CSXArray::scSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
// Length
//////////////////////////////////////////////////////////////////////////
diff --git a/engines/wintermute/Base/scriptables/SXArray.h b/engines/wintermute/Base/scriptables/SXArray.h
index d1cc4ce4db..938e020d93 100644
--- a/engines/wintermute/Base/scriptables/SXArray.h
+++ b/engines/wintermute/Base/scriptables/SXArray.h
@@ -41,10 +41,10 @@ public:
CSXArray(CBGame *inGame, CScStack *Stack);
CSXArray(CBGame *inGame);
virtual ~CSXArray();
- CScValue *ScGetProperty(const char *Name);
- HRESULT ScSetProperty(const char *Name, CScValue *Value);
- HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- const char *ScToString();
+ CScValue *scGetProperty(const char *Name);
+ HRESULT scSetProperty(const char *Name, CScValue *Value);
+ HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ const char *scToString();
int _length;
CScValue *_values;
};
diff --git a/engines/wintermute/Base/scriptables/SXDate.cpp b/engines/wintermute/Base/scriptables/SXDate.cpp
index 465999241f..669b072d2f 100644
--- a/engines/wintermute/Base/scriptables/SXDate.cpp
+++ b/engines/wintermute/Base/scriptables/SXDate.cpp
@@ -64,7 +64,7 @@ CSXDate::~CSXDate() {
}
//////////////////////////////////////////////////////////////////////////
-const char *CSXDate::ScToString() {
+const char *CSXDate::scToString() {
// TODO: Make this more stringy, and less ISO 8601-like
_strRep.format("%04d-%02d-%02d - %02d:%02d:%02d", _tm.tm_year, _tm.tm_mon, _tm.tm_mday, _tm.tm_hour, _tm.tm_min, _tm.tm_sec);
return _strRep.c_str();
@@ -75,7 +75,7 @@ const char *CSXDate::ScToString() {
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXDate::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CSXDate::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// GetYear
//////////////////////////////////////////////////////////////////////////
@@ -207,7 +207,7 @@ HRESULT CSXDate::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This
//////////////////////////////////////////////////////////////////////////
-CScValue *CSXDate::ScGetProperty(const char *Name) {
+CScValue *CSXDate::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -223,7 +223,7 @@ CScValue *CSXDate::ScGetProperty(const char *Name) {
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXDate::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CSXDate::scSetProperty(const char *Name, CScValue *Value) {
/*
//////////////////////////////////////////////////////////////////////////
// Name
@@ -251,7 +251,7 @@ HRESULT CSXDate::persist(CBPersistMgr *persistMgr) {
}
//////////////////////////////////////////////////////////////////////////
-int CSXDate::ScCompare(CBScriptable *Value) {
+int CSXDate::scCompare(CBScriptable *Value) {
TimeDate time1 = _tm;
TimeDate time2 = ((CSXDate *)Value)->_tm;
diff --git a/engines/wintermute/Base/scriptables/SXDate.h b/engines/wintermute/Base/scriptables/SXDate.h
index 95334d0196..28d2590c31 100644
--- a/engines/wintermute/Base/scriptables/SXDate.h
+++ b/engines/wintermute/Base/scriptables/SXDate.h
@@ -36,14 +36,14 @@ namespace WinterMute {
class CSXDate : public CBScriptable {
public:
- int ScCompare(CBScriptable *Value);
+ int scCompare(CBScriptable *Value);
DECLARE_PERSISTENT(CSXDate, CBScriptable)
CSXDate(CBGame *inGame, CScStack *Stack);
virtual ~CSXDate();
- CScValue *ScGetProperty(const char *Name);
- HRESULT ScSetProperty(const char *Name, CScValue *Value);
- HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- const char *ScToString();
+ CScValue *scGetProperty(const char *Name);
+ HRESULT scSetProperty(const char *Name, CScValue *Value);
+ HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ const char *scToString();
char *_string;
TimeDate _tm;
private:
diff --git a/engines/wintermute/Base/scriptables/SXFile.cpp b/engines/wintermute/Base/scriptables/SXFile.cpp
index 9e61181ad0..2be008edaf 100644
--- a/engines/wintermute/Base/scriptables/SXFile.cpp
+++ b/engines/wintermute/Base/scriptables/SXFile.cpp
@@ -98,14 +98,14 @@ void CSXFile::Close() {
}
//////////////////////////////////////////////////////////////////////////
-const char *CSXFile::ScToString() {
+const char *CSXFile::scToString() {
if (_filename) return _filename;
else return "[file object]";
}
#define FILE_BUFFER_SIZE 32768
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXFile::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CSXFile::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// SetFilename
//////////////////////////////////////////////////////////////////////////
@@ -580,12 +580,12 @@ HRESULT CSXFile::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This
}
- else return CBScriptable::ScCallMethod(Script, Stack, ThisStack, Name);
+ else return CBScriptable::scCallMethod(Script, Stack, ThisStack, Name);
}
//////////////////////////////////////////////////////////////////////////
-CScValue *CSXFile::ScGetProperty(const char *Name) {
+CScValue *CSXFile::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -636,12 +636,12 @@ CScValue *CSXFile::ScGetProperty(const char *Name) {
return _scValue;
}
- else return CBScriptable::ScGetProperty(Name);
+ else return CBScriptable::scGetProperty(Name);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXFile::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CSXFile::scSetProperty(const char *Name, CScValue *Value) {
/*
//////////////////////////////////////////////////////////////////////////
// Length
@@ -659,7 +659,7 @@ HRESULT CSXFile::ScSetProperty(const char *Name, CScValue *Value) {
}
return S_OK;
}
- else*/ return CBScriptable::ScSetProperty(Name, Value);
+ else*/ return CBScriptable::scSetProperty(Name, Value);
}
//////////////////////////////////////////////////////////////////////////
diff --git a/engines/wintermute/Base/scriptables/SXFile.h b/engines/wintermute/Base/scriptables/SXFile.h
index 8c37127f7b..d36f8ec3ae 100644
--- a/engines/wintermute/Base/scriptables/SXFile.h
+++ b/engines/wintermute/Base/scriptables/SXFile.h
@@ -40,10 +40,10 @@ class CBFile;
class CSXFile : public CBScriptable {
public:
DECLARE_PERSISTENT(CSXFile, CBScriptable)
- CScValue *ScGetProperty(const char *Name);
- HRESULT ScSetProperty(const char *Name, CScValue *Value);
- HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- const char *ScToString();
+ CScValue *scGetProperty(const char *Name);
+ HRESULT scSetProperty(const char *Name, CScValue *Value);
+ HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ const char *scToString();
CSXFile(CBGame *inGame, CScStack *Stack);
virtual ~CSXFile();
private:
diff --git a/engines/wintermute/Base/scriptables/SXMath.cpp b/engines/wintermute/Base/scriptables/SXMath.cpp
index da05de0e95..f6ee46e33b 100644
--- a/engines/wintermute/Base/scriptables/SXMath.cpp
+++ b/engines/wintermute/Base/scriptables/SXMath.cpp
@@ -58,7 +58,7 @@ CSXMath::~CSXMath() {
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXMath::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CSXMath::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// Abs
//////////////////////////////////////////////////////////////////////////
@@ -249,7 +249,7 @@ HRESULT CSXMath::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *This
//////////////////////////////////////////////////////////////////////////
-CScValue *CSXMath::ScGetProperty(const char *Name) {
+CScValue *CSXMath::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
diff --git a/engines/wintermute/Base/scriptables/SXMath.h b/engines/wintermute/Base/scriptables/SXMath.h
index 0e61738161..355bb78890 100644
--- a/engines/wintermute/Base/scriptables/SXMath.h
+++ b/engines/wintermute/Base/scriptables/SXMath.h
@@ -39,8 +39,8 @@ public:
DECLARE_PERSISTENT(CSXMath, CBScriptable)
CSXMath(CBGame *inGame);
virtual ~CSXMath();
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
private:
double DegreeToRadian(double Value);
diff --git a/engines/wintermute/Base/scriptables/SXMemBuffer.cpp b/engines/wintermute/Base/scriptables/SXMemBuffer.cpp
index 6769d3fda9..de635e1c72 100644
--- a/engines/wintermute/Base/scriptables/SXMemBuffer.cpp
+++ b/engines/wintermute/Base/scriptables/SXMemBuffer.cpp
@@ -64,7 +64,7 @@ CSXMemBuffer::~CSXMemBuffer() {
}
//////////////////////////////////////////////////////////////////////////
-void *CSXMemBuffer::ScToMemBuffer() {
+void *CSXMemBuffer::scToMemBuffer() {
return _buffer;
}
@@ -116,13 +116,13 @@ bool CSXMemBuffer::CheckBounds(CScScript *Script, int Start, int Length) {
}
//////////////////////////////////////////////////////////////////////////
-const char *CSXMemBuffer::ScToString() {
+const char *CSXMemBuffer::scToString() {
return "[membuffer object]";
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXMemBuffer::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CSXMemBuffer::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// SetSize
//////////////////////////////////////////////////////////////////////////
@@ -407,7 +407,7 @@ HRESULT CSXMemBuffer::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack
//////////////////////////////////////////////////////////////////////////
-CScValue *CSXMemBuffer::ScGetProperty(const char *Name) {
+CScValue *CSXMemBuffer::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -426,12 +426,12 @@ CScValue *CSXMemBuffer::ScGetProperty(const char *Name) {
return _scValue;
}
- else return CBScriptable::ScGetProperty(Name);
+ else return CBScriptable::scGetProperty(Name);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXMemBuffer::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CSXMemBuffer::scSetProperty(const char *Name, CScValue *Value) {
/*
//////////////////////////////////////////////////////////////////////////
// Length
@@ -449,7 +449,7 @@ HRESULT CSXMemBuffer::ScSetProperty(const char *Name, CScValue *Value) {
}
return S_OK;
}
- else*/ return CBScriptable::ScSetProperty(Name, Value);
+ else*/ return CBScriptable::scSetProperty(Name, Value);
}
@@ -474,8 +474,8 @@ HRESULT CSXMemBuffer::persist(CBPersistMgr *persistMgr) {
//////////////////////////////////////////////////////////////////////////
-int CSXMemBuffer::ScCompare(CBScriptable *Val) {
- if (_buffer == Val->ScToMemBuffer()) return 0;
+int CSXMemBuffer::scCompare(CBScriptable *Val) {
+ if (_buffer == Val->scToMemBuffer()) return 0;
else return 1;
}
diff --git a/engines/wintermute/Base/scriptables/SXMemBuffer.h b/engines/wintermute/Base/scriptables/SXMemBuffer.h
index 54074b183d..d080b1f136 100644
--- a/engines/wintermute/Base/scriptables/SXMemBuffer.h
+++ b/engines/wintermute/Base/scriptables/SXMemBuffer.h
@@ -36,16 +36,16 @@ namespace WinterMute {
class CSXMemBuffer : public CBScriptable {
public:
- virtual int ScCompare(CBScriptable *Val);
+ virtual int scCompare(CBScriptable *Val);
DECLARE_PERSISTENT(CSXMemBuffer, CBScriptable)
- CScValue *ScGetProperty(const char *Name);
- HRESULT ScSetProperty(const char *Name, CScValue *Value);
- HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- const char *ScToString();
+ CScValue *scGetProperty(const char *Name);
+ HRESULT scSetProperty(const char *Name, CScValue *Value);
+ HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ const char *scToString();
CSXMemBuffer(CBGame *inGame, CScStack *Stack);
CSXMemBuffer(CBGame *inGame, void *Buffer);
virtual ~CSXMemBuffer();
- virtual void *ScToMemBuffer();
+ virtual void *scToMemBuffer();
int _size;
private:
HRESULT Resize(int NewSize);
diff --git a/engines/wintermute/Base/scriptables/SXStore.cpp b/engines/wintermute/Base/scriptables/SXStore.cpp
index 52e7d2d53f..322ef8930d 100644
--- a/engines/wintermute/Base/scriptables/SXStore.cpp
+++ b/engines/wintermute/Base/scriptables/SXStore.cpp
@@ -84,7 +84,7 @@ void CSXStore::Cleanup() {
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXStore::ScCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name) {
+HRESULT CSXStore::scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name) {
//////////////////////////////////////////////////////////////////////////
// EnableEvents
//////////////////////////////////////////////////////////////////////////
@@ -227,7 +227,7 @@ HRESULT CSXStore::ScCallMethod(CScScript *script, CScStack *stack, CScStack *thi
//////////////////////////////////////////////////////////////////////////
-CScValue *CSXStore::ScGetProperty(const char *name) {
+CScValue *CSXStore::scGetProperty(const char *name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
diff --git a/engines/wintermute/Base/scriptables/SXStore.h b/engines/wintermute/Base/scriptables/SXStore.h
index 200349addf..fd5f36a882 100644
--- a/engines/wintermute/Base/scriptables/SXStore.h
+++ b/engines/wintermute/Base/scriptables/SXStore.h
@@ -129,8 +129,8 @@ public:
DECLARE_PERSISTENT(CSXStore, CBObject)
CSXStore(CBGame *inGame);
virtual ~CSXStore();
- virtual CScValue *ScGetProperty(const char *Name);
- virtual HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ virtual CScValue *scGetProperty(const char *Name);
+ virtual HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
void AfterLoad();
void OnObjectDestroyed(CBScriptHolder *obj);
diff --git a/engines/wintermute/Base/scriptables/SXString.cpp b/engines/wintermute/Base/scriptables/SXString.cpp
index fdbcea5ef2..35343d095a 100644
--- a/engines/wintermute/Base/scriptables/SXString.cpp
+++ b/engines/wintermute/Base/scriptables/SXString.cpp
@@ -86,20 +86,20 @@ void CSXString::SetStringVal(const char *Val) {
//////////////////////////////////////////////////////////////////////////
-const char *CSXString::ScToString() {
+const char *CSXString::scToString() {
if (_string) return _string;
else return "[null string]";
}
//////////////////////////////////////////////////////////////////////////
-void CSXString::ScSetString(const char *Val) {
+void CSXString::scSetString(const char *Val) {
SetStringVal(Val);
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXString::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
+HRESULT CSXString::scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name) {
//////////////////////////////////////////////////////////////////////////
// Substring
//////////////////////////////////////////////////////////////////////////
@@ -317,7 +317,7 @@ HRESULT CSXString::ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *Th
//////////////////////////////////////////////////////////////////////////
-CScValue *CSXString::ScGetProperty(const char *Name) {
+CScValue *CSXString::scGetProperty(const char *Name) {
_scValue->SetNULL();
//////////////////////////////////////////////////////////////////////////
@@ -352,7 +352,7 @@ CScValue *CSXString::ScGetProperty(const char *Name) {
//////////////////////////////////////////////////////////////////////////
-HRESULT CSXString::ScSetProperty(const char *Name, CScValue *Value) {
+HRESULT CSXString::scSetProperty(const char *Name, CScValue *Value) {
//////////////////////////////////////////////////////////////////////////
// Capacity
//////////////////////////////////////////////////////////////////////////
@@ -397,7 +397,7 @@ HRESULT CSXString::persist(CBPersistMgr *persistMgr) {
//////////////////////////////////////////////////////////////////////////
-int CSXString::ScCompare(CBScriptable *Val) {
+int CSXString::scCompare(CBScriptable *Val) {
return strcmp(_string, ((CSXString *)Val)->_string);
}
diff --git a/engines/wintermute/Base/scriptables/SXString.h b/engines/wintermute/Base/scriptables/SXString.h
index 649a6c6f24..1adc0cad1e 100644
--- a/engines/wintermute/Base/scriptables/SXString.h
+++ b/engines/wintermute/Base/scriptables/SXString.h
@@ -36,13 +36,13 @@ namespace WinterMute {
class CSXString : public CBScriptable {
public:
- virtual int ScCompare(CBScriptable *Val);
+ virtual int scCompare(CBScriptable *Val);
DECLARE_PERSISTENT(CSXString, CBScriptable)
- CScValue *ScGetProperty(const char *Name);
- HRESULT ScSetProperty(const char *Name, CScValue *Value);
- HRESULT ScCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
- void ScSetString(const char *Val);
- const char *ScToString();
+ CScValue *scGetProperty(const char *Name);
+ HRESULT scSetProperty(const char *Name, CScValue *Value);
+ HRESULT scCallMethod(CScScript *Script, CScStack *Stack, CScStack *ThisStack, const char *Name);
+ void scSetString(const char *Val);
+ const char *scToString();
void SetStringVal(const char *Val);
CSXString(CBGame *inGame, CScStack *Stack);
diff --git a/engines/wintermute/Base/scriptables/ScScript.cpp b/engines/wintermute/Base/scriptables/ScScript.cpp
index c293009da1..33e697ffd7 100644
--- a/engines/wintermute/Base/scriptables/ScScript.cpp
+++ b/engines/wintermute/Base/scriptables/ScScript.cpp
@@ -534,13 +534,13 @@ HRESULT CScScript::ExecuteInstruction() {
// we are already calling this method, try native
if (_thread && _methodThread && strcmp(MethodName, _threadEvent) == 0 && var->_type == VAL_NATIVE && _owner == var->GetNative()) {
TriedNative = true;
- res = var->_valNative->ScCallMethod(this, _stack, _thisStack, MethodName);
+ res = var->_valNative->scCallMethod(this, _stack, _thisStack, MethodName);
}
if (FAILED(res)) {
- if (var->IsNative() && var->GetNative()->CanHandleMethod(MethodName)) {
+ if (var->IsNative() && var->GetNative()->canHandleMethod(MethodName)) {
if (!_unbreakable) {
- _waitScript = var->GetNative()->InvokeMethodThread(MethodName);
+ _waitScript = var->GetNative()->invokeMethodThread(MethodName);
if (!_waitScript) {
_stack->CorrectParams(0);
RuntimeError("Error invoking method '%s'.", MethodName);
@@ -581,7 +581,7 @@ HRESULT CScScript::ExecuteInstruction() {
*/
else {
res = E_FAIL;
- if (var->_type == VAL_NATIVE && !TriedNative) res = var->_valNative->ScCallMethod(this, _stack, _thisStack, MethodName);
+ if (var->_type == VAL_NATIVE && !TriedNative) res = var->_valNative->scCallMethod(this, _stack, _thisStack, MethodName);
if (FAILED(res)) {
_stack->CorrectParams(0);
@@ -1250,7 +1250,7 @@ bool CScScript::CanHandleEvent(const char *EventName) {
//////////////////////////////////////////////////////////////////////////
-bool CScScript::CanHandleMethod(const char *MethodName) {
+bool CScScript::canHandleMethod(const char *MethodName) {
return GetMethodPos(MethodName) != 0;
}
diff --git a/engines/wintermute/Base/scriptables/ScScript.h b/engines/wintermute/Base/scriptables/ScScript.h
index 226e6d8031..dd6fcb1f4a 100644
--- a/engines/wintermute/Base/scriptables/ScScript.h
+++ b/engines/wintermute/Base/scriptables/ScScript.h
@@ -69,7 +69,7 @@ public:
HRESULT Resume();
HRESULT Pause();
bool CanHandleEvent(const char *EventName);
- bool CanHandleMethod(const char *MethodName);
+ bool canHandleMethod(const char *MethodName);
HRESULT CreateThread(CScScript *Original, uint32 InitIP, const char *EventName);
HRESULT CreateMethodThread(CScScript *Original, const char *MethodName);
CScScript *InvokeEventHandler(const char *EventName, bool Unbreakable = false);
diff --git a/engines/wintermute/Base/scriptables/ScValue.cpp b/engines/wintermute/Base/scriptables/ScValue.cpp
index 4dce85c1a0..c75487a268 100644
--- a/engines/wintermute/Base/scriptables/ScValue.cpp
+++ b/engines/wintermute/Base/scriptables/ScValue.cpp
@@ -178,7 +178,7 @@ CScValue *CScValue::GetProp(const char *Name) {
CScValue *ret = NULL;
- if (_type == VAL_NATIVE && _valNative) ret = _valNative->ScGetProperty(Name);
+ if (_type == VAL_NATIVE && _valNative) ret = _valNative->scGetProperty(Name);
if (ret == NULL) {
_valIter = _valObject.find(Name);
@@ -208,7 +208,7 @@ HRESULT CScValue::SetProp(const char *Name, CScValue *Val, bool CopyWhole, bool
HRESULT ret = E_FAIL;
if (_type == VAL_NATIVE && _valNative) {
- ret = _valNative->ScSetProperty(Name, Val);
+ ret = _valNative->scSetProperty(Name, Val);
}
if (FAILED(ret)) {
@@ -347,7 +347,7 @@ void CScValue::SetBool(bool Val) {
}
if (_type == VAL_NATIVE) {
- _valNative->ScSetBool(Val);
+ _valNative->scSetBool(Val);
return;
}
@@ -364,7 +364,7 @@ void CScValue::SetInt(int Val) {
}
if (_type == VAL_NATIVE) {
- _valNative->ScSetInt(Val);
+ _valNative->scSetInt(Val);
return;
}
@@ -381,7 +381,7 @@ void CScValue::SetFloat(double Val) {
}
if (_type == VAL_NATIVE) {
- _valNative->ScSetFloat(Val);
+ _valNative->scSetFloat(Val);
return;
}
@@ -398,7 +398,7 @@ void CScValue::SetString(const char *Val) {
}
if (_type == VAL_NATIVE) {
- _valNative->ScSetString(Val);
+ _valNative->scSetString(Val);
return;
}
@@ -503,7 +503,7 @@ bool CScValue::GetBool(bool Default) {
return _valBool;
case VAL_NATIVE:
- return _valNative->ScToBool();
+ return _valNative->scToBool();
case VAL_INT:
return (_valInt != 0);
@@ -529,7 +529,7 @@ int CScValue::GetInt(int Default) {
return _valBool ? 1 : 0;
case VAL_NATIVE:
- return _valNative->ScToInt();
+ return _valNative->scToInt();
case VAL_INT:
return _valInt;
@@ -555,7 +555,7 @@ double CScValue::GetFloat(double Default) {
return _valBool ? 1.0f : 0.0f;
case VAL_NATIVE:
- return _valNative->ScToFloat();
+ return _valNative->scToFloat();
case VAL_INT:
return (double)_valInt;
@@ -575,7 +575,7 @@ double CScValue::GetFloat(double Default) {
void *CScValue::GetMemBuffer() {
if (_type == VAL_VARIABLE_REF) return _valRef->GetMemBuffer();
- if (_type == VAL_NATIVE) return _valNative->ScToMemBuffer();
+ if (_type == VAL_NATIVE) return _valNative->scToMemBuffer();
else return (void *)NULL;
}
@@ -594,7 +594,7 @@ const char *CScValue::GetString() {
break;
case VAL_NATIVE: {
- const char *StrVal = _valNative->ScToString();
+ const char *StrVal = _valNative->scToString();
SetStringVal(StrVal);
return StrVal;
break;
@@ -696,16 +696,16 @@ void CScValue::SetValue(CScValue *Val) {
if (_type == VAL_NATIVE && (Val->_type == VAL_INT || Val->_type == VAL_STRING || Val->_type == VAL_BOOL)) {
switch (Val->_type) {
case VAL_INT:
- _valNative->ScSetInt(Val->GetInt());
+ _valNative->scSetInt(Val->GetInt());
break;
case VAL_FLOAT:
- _valNative->ScSetFloat(Val->GetFloat());
+ _valNative->scSetFloat(Val->GetFloat());
break;
case VAL_BOOL:
- _valNative->ScSetBool(Val->GetBool());
+ _valNative->scSetBool(Val->GetBool());
break;
case VAL_STRING:
- _valNative->ScSetString(Val->GetString());
+ _valNative->scSetString(Val->GetString());
break;
default:
warning("CScValue::SetValue - unhandled enum");
@@ -823,7 +823,7 @@ int CScValue::Compare(CScValue *Val1, CScValue *Val2) {
if (Val1->IsNative() && Val2->IsNative()) {
// same class?
if (strcmp(Val1->GetNative()->GetClassName(), Val2->GetNative()->GetClassName()) == 0) {
- return Val1->GetNative()->ScCompare(Val2->GetNative());
+ return Val1->GetNative()->scCompare(Val2->GetNative());
} else return strcmp(Val1->GetString(), Val2->GetString());
}
@@ -1024,7 +1024,7 @@ bool CScValue::DbgGetDescription(char *Buf, int BufSize) {
if (_type == VAL_VARIABLE_REF) return _valRef->DbgGetDescription(Buf, BufSize);
if (_type == VAL_NATIVE) {
- _valNative->ScDebuggerDesc(Buf, BufSize);
+ _valNative->scDebuggerDesc(Buf, BufSize);
} else {
strncpy(Buf, GetString(), BufSize);
}