diff options
author | Einar Johan Trøan Sømåen | 2012-07-06 18:19:09 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-06 18:19:09 +0200 |
commit | 616a5bbd627908a3bba981830080fd3a0bb2654e (patch) | |
tree | 38b09fb7bf36a3c385bd2b25d384d645ea50299c /engines/wintermute | |
parent | 3f6f944473211d5a1788671ca66f6fba103b4d40 (diff) | |
download | scummvm-rg350-616a5bbd627908a3bba981830080fd3a0bb2654e.tar.gz scummvm-rg350-616a5bbd627908a3bba981830080fd3a0bb2654e.tar.bz2 scummvm-rg350-616a5bbd627908a3bba981830080fd3a0bb2654e.zip |
WINTERMUTE: Rename FuncName->funcName in BDebugger
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/Base/BDebugger.cpp | 42 | ||||
-rw-r--r-- | engines/wintermute/Base/BDebugger.h | 52 | ||||
-rw-r--r-- | engines/wintermute/Base/BScriptable.cpp | 4 | ||||
-rw-r--r-- | engines/wintermute/Base/BScriptable.h | 4 | ||||
-rw-r--r-- | engines/wintermute/Base/scriptables/ScEngine.cpp | 6 | ||||
-rw-r--r-- | engines/wintermute/Base/scriptables/ScEngine.h | 4 | ||||
-rw-r--r-- | engines/wintermute/Base/scriptables/ScScript.cpp | 20 | ||||
-rw-r--r-- | engines/wintermute/Base/scriptables/ScScript.h | 16 | ||||
-rw-r--r-- | engines/wintermute/Base/scriptables/ScValue.cpp | 36 | ||||
-rw-r--r-- | engines/wintermute/Base/scriptables/ScValue.h | 28 | ||||
-rw-r--r-- | engines/wintermute/wme_debugger.h | 104 |
11 files changed, 159 insertions, 157 deletions
diff --git a/engines/wintermute/Base/BDebugger.cpp b/engines/wintermute/Base/BDebugger.cpp index aa4ac7cf3e..e720f8430d 100644 --- a/engines/wintermute/Base/BDebugger.cpp +++ b/engines/wintermute/Base/BDebugger.cpp @@ -41,12 +41,12 @@ CBDebugger::~CBDebugger(void) { //////////////////////////////////////////////////////////////////////////
-HRESULT CBDebugger::Initialize() {
+HRESULT CBDebugger::initialize() {
return S_OK;
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBDebugger::Shutdown() {
+HRESULT CBDebugger::shutdown() {
return S_OK;
}
@@ -92,18 +92,18 @@ HRESULT CBDebugger::onScriptShutdown(CScScript *script) { }
//////////////////////////////////////////////////////////////////////////
-HRESULT CBDebugger::onScriptChangeLine(CScScript *Script, int Line) {
+HRESULT CBDebugger::onScriptChangeLine(CScScript *script, int Line) {
return S_OK;
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBDebugger::onScriptChangeScope(CScScript *Script, CScValue *Scope) {
+HRESULT CBDebugger::onScriptChangeScope(CScScript *script, CScValue *scope) {
return S_OK;
}
//////////////////////////////////////////////////////////////////////////
-HRESULT CBDebugger::onScriptShutdownScope(CScScript *Script, CScValue *Scope) {
+HRESULT CBDebugger::onScriptShutdownScope(CScScript *script, CScValue *scope) {
return S_OK;
}
@@ -113,7 +113,7 @@ HRESULT CBDebugger::onVariableInit(EWmeDebuggerVariableType type, CScScript *scr }
//////////////////////////////////////////////////////////////////////////
-HRESULT CBDebugger::onVariableChangeValue(CScValue *Var, CScValue *value) {
+HRESULT CBDebugger::onVariableChangeValue(CScValue *var, CScValue *value) {
return S_OK;
}
@@ -124,79 +124,79 @@ HRESULT CBDebugger::onScriptHitBreakpoint(CScScript *script) { //////////////////////////////////////////////////////////////////////////
// IWmeDebugServer interface implementation
-bool CBDebugger::AttachClient(IWmeDebugClient *Client) {
+bool CBDebugger::attachClient(IWmeDebugClient *client) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::DetachClient(IWmeDebugClient *Client) {
+bool CBDebugger::detachClient(IWmeDebugClient *client) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::QueryData(IWmeDebugClient *Client) {
+bool CBDebugger::queryData(IWmeDebugClient *client) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-int CBDebugger::GetPropInt(const char *PropName) {
+int CBDebugger::getPropInt(const char *propName) {
return 0;
}
//////////////////////////////////////////////////////////////////////////
-double CBDebugger::GetPropFloat(const char *PropName) {
+double CBDebugger::getPropFloat(const char *propName) {
return 0.0;
}
//////////////////////////////////////////////////////////////////////////
-const char *CBDebugger::GetPropString(const char *PropName) {
+const char *CBDebugger::getPropString(const char *propName) {
return "";
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::GetPropBool(const char *PropName) {
+bool CBDebugger::getPropBool(const char *propName) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::SetProp(const char *PropName, int PropValue) {
+bool CBDebugger::setProp(const char *propName, int propValue) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::SetProp(const char *PropName, double PropValue) {
+bool CBDebugger::setProp(const char *propName, double propValue) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::SetProp(const char *PropName, const char *PropValue) {
+bool CBDebugger::setProp(const char *propName, const char *propValue) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::SetProp(const char *PropName, bool PropValue) {
+bool CBDebugger::setProp(const char *propName, bool propValue) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::ResolveFilename(const char *RelativeFilename, char *AbsFilenameBuf, int AbsBufSize) {
+bool CBDebugger::resolveFilename(const char *relativeFilename, char *absFilenameBuf, int absBufSize) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::AddBreakpoint(const char *ScriptFilename, int Line) {
+bool CBDebugger::addBreakpoint(const char *scriptFilename, int line) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::RemoveBreakpoint(const char *ScriptFilename, int Line) {
+bool CBDebugger::removeBreakpoint(const char *scriptFilename, int line) {
return false;
}
//////////////////////////////////////////////////////////////////////////
-bool CBDebugger::ContinueExecution() {
+bool CBDebugger::continueExecution() {
return false;
}
diff --git a/engines/wintermute/Base/BDebugger.h b/engines/wintermute/Base/BDebugger.h index e448a72651..79f3fba816 100644 --- a/engines/wintermute/Base/BDebugger.h +++ b/engines/wintermute/Base/BDebugger.h @@ -33,6 +33,8 @@ #include "engines/wintermute/Base/BBase.h"
#include "engines/wintermute/wme_debugger.h"
+// TODO: The entire debugger should possibly be removed
+
namespace WinterMute {
class CScScript;
class CScValue;
@@ -43,48 +45,48 @@ public: // initialization
bool _enabled;
- HRESULT Initialize();
- HRESULT Shutdown();
+ HRESULT initialize();
+ HRESULT shutdown();
// internal interface
HRESULT onGameInit();
HRESULT onGameShutdown();
HRESULT onGameTick();
- HRESULT onLog(unsigned int ErrorCode, const char *Text);
+ HRESULT onLog(unsigned int errorCode, const char *text);
HRESULT onScriptInit(CScScript *script);
- HRESULT onScriptEventThreadInit(CScScript *Script, CScScript *ParentScript, const char *name);
- HRESULT onScriptMethodThreadInit(CScScript *Script, CScScript *ParentScript, const char *name);
+ HRESULT onScriptEventThreadInit(CScScript *script, CScScript *parentScript, const char *name);
+ HRESULT onScriptMethodThreadInit(CScScript *script, CScScript *parentScript, const char *name);
HRESULT onScriptShutdown(CScScript *script);
- HRESULT onScriptChangeLine(CScScript *Script, int Line);
- HRESULT onScriptChangeScope(CScScript *Script, CScValue *Scope);
- HRESULT onScriptShutdownScope(CScScript *Script, CScValue *Scope);
- HRESULT onVariableInit(EWmeDebuggerVariableType Type, CScScript *script, CScValue *Scope, CScValue *Var, const char *VariableName);
- HRESULT onVariableChangeValue(CScValue *Var, CScValue *value);
+ HRESULT onScriptChangeLine(CScScript *script, int line);
+ HRESULT onScriptChangeScope(CScScript *script, CScValue *scope);
+ HRESULT onScriptShutdownScope(CScScript *script, CScValue *scope);
+ HRESULT onVariableInit(EWmeDebuggerVariableType type, CScScript *script, CScValue *scope, CScValue *var, const char *variableName);
+ HRESULT onVariableChangeValue(CScValue *var, CScValue *value);
HRESULT onScriptHitBreakpoint(CScScript *script);
// IWmeDebugServer interface
- virtual bool AttachClient(IWmeDebugClient *Client);
- virtual bool DetachClient(IWmeDebugClient *Client);
- virtual bool QueryData(IWmeDebugClient *Client);
+ virtual bool attachClient(IWmeDebugClient *client);
+ virtual bool detachClient(IWmeDebugClient *client);
+ virtual bool queryData(IWmeDebugClient *client);
- virtual int GetPropInt(const char *PropName);
- virtual double GetPropFloat(const char *PropName);
- virtual const char *GetPropString(const char *PropName);
- virtual bool GetPropBool(const char *PropName);
+ virtual int getPropInt(const char *propName);
+ virtual double getPropFloat(const char *propName);
+ virtual const char *getPropString(const char *propName);
+ virtual bool getPropBool(const char *propName);
- virtual bool SetProp(const char *PropName, int PropValue);
- virtual bool SetProp(const char *PropName, double PropValue);
- virtual bool SetProp(const char *PropName, const char *PropValue);
- virtual bool SetProp(const char *PropName, bool PropValue);
+ virtual bool setProp(const char *propName, int propValue);
+ virtual bool setProp(const char *propName, double propValue);
+ virtual bool setProp(const char *propName, const char *propValue);
+ virtual bool setProp(const char *propName, bool propValue);
- virtual bool ResolveFilename(const char *RelativeFilename, char *AbsFilenameBuf, int AbsBufSize);
+ virtual bool resolveFilename(const char *relativeFilename, char *absFilenameBuf, int absBufSize);
- virtual bool AddBreakpoint(const char *ScriptFilename, int Line);
- virtual bool RemoveBreakpoint(const char *ScriptFilename, int Line);
+ virtual bool addBreakpoint(const char *scriptFilename, int line);
+ virtual bool removeBreakpoint(const char *scriptFilename, int line);
- virtual bool ContinueExecution();
+ virtual bool continueExecution();
private:
};
diff --git a/engines/wintermute/Base/BScriptable.cpp b/engines/wintermute/Base/BScriptable.cpp index bd0018de24..ea6aca21c2 100644 --- a/engines/wintermute/Base/BScriptable.cpp +++ b/engines/wintermute/Base/BScriptable.cpp @@ -176,12 +176,12 @@ CScScript *CBScriptable::invokeMethodThread(const char *methodName) { //////////////////////////////////////////////////////////////////////////
// IWmeDebugObject
//////////////////////////////////////////////////////////////////////////
-const char *CBScriptable::DbgGetNativeClass() {
+const char *CBScriptable::dbgGetNativeClass() {
return getClassName();
}
//////////////////////////////////////////////////////////////////////////
-IWmeDebugProp *CBScriptable::DbgGetProperty(const char *name) {
+IWmeDebugProp *CBScriptable::dbgGetProperty(const char *name) {
return scGetProperty(name);
}
diff --git a/engines/wintermute/Base/BScriptable.h b/engines/wintermute/Base/BScriptable.h index 742ec174a2..d0c91800f1 100644 --- a/engines/wintermute/Base/BScriptable.h +++ b/engines/wintermute/Base/BScriptable.h @@ -70,8 +70,8 @@ public: public:
// IWmeDebugObject
- const char *DbgGetNativeClass();
- IWmeDebugProp *DbgGetProperty(const char *name);
+ const char *dbgGetNativeClass();
+ IWmeDebugProp *dbgGetProperty(const char *name);
};
diff --git a/engines/wintermute/Base/scriptables/ScEngine.cpp b/engines/wintermute/Base/scriptables/ScEngine.cpp index c9c62e5dbe..781e08d0d1 100644 --- a/engines/wintermute/Base/scriptables/ScEngine.cpp +++ b/engines/wintermute/Base/scriptables/ScEngine.cpp @@ -673,7 +673,7 @@ HRESULT CScEngine::DbgSendScripts(IWmeDebugClient *Client) { }
//////////////////////////////////////////////////////////////////////////
-HRESULT CScEngine::AddBreakpoint(const char *ScriptFilename, int Line) {
+HRESULT CScEngine::addBreakpoint(const char *ScriptFilename, int Line) {
if (!Game->getDebugMgr()->_enabled) return S_OK;
CScBreakpoint *Bp = NULL;
@@ -700,7 +700,7 @@ HRESULT CScEngine::AddBreakpoint(const char *ScriptFilename, int Line) { }
//////////////////////////////////////////////////////////////////////////
-HRESULT CScEngine::RemoveBreakpoint(const char *ScriptFilename, int Line) {
+HRESULT CScEngine::removeBreakpoint(const char *ScriptFilename, int Line) {
if (!Game->getDebugMgr()->_enabled) return S_OK;
for (int i = 0; i < _breakpoints.GetSize(); i++) {
@@ -789,7 +789,7 @@ HRESULT CScEngine::LoadBreakpoints() { char *Path = CBUtils::strEntry(0, breakpoint.c_str(), ':');
char *Line = CBUtils::strEntry(1, breakpoint.c_str(), ':');
- if (Path != NULL && Line != NULL) AddBreakpoint(Path, atoi(Line));
+ if (Path != NULL && Line != NULL) addBreakpoint(Path, atoi(Line));
delete[] Path;
delete[] Line;
Path = NULL;
diff --git a/engines/wintermute/Base/scriptables/ScEngine.h b/engines/wintermute/Base/scriptables/ScEngine.h index 42440c8a2d..3b527e4032 100644 --- a/engines/wintermute/Base/scriptables/ScEngine.h +++ b/engines/wintermute/Base/scriptables/ScEngine.h @@ -96,8 +96,8 @@ public: HRESULT DbgSendScripts(IWmeDebugClient *Client);
CBArray<CScBreakpoint *, CScBreakpoint *> _breakpoints;
- HRESULT AddBreakpoint(const char *ScriptFilename, int Line);
- HRESULT RemoveBreakpoint(const char *ScriptFilename, int Line);
+ HRESULT addBreakpoint(const char *ScriptFilename, int Line);
+ HRESULT removeBreakpoint(const char *ScriptFilename, int Line);
HRESULT RefreshScriptBreakpoints();
HRESULT RefreshScriptBreakpoints(CScScript *script);
HRESULT SaveBreakpoints();
diff --git a/engines/wintermute/Base/scriptables/ScScript.cpp b/engines/wintermute/Base/scriptables/ScScript.cpp index 4e59893d1d..397ebe4c24 100644 --- a/engines/wintermute/Base/scriptables/ScScript.cpp +++ b/engines/wintermute/Base/scriptables/ScScript.cpp @@ -1552,21 +1552,21 @@ HRESULT CScScript::FinishThreads() { //////////////////////////////////////////////////////////////////////////
// IWmeDebugScript interface implementation
-int CScScript::DbgGetLine() {
+int CScScript::dbgGetLine() {
return _currentLine;
}
//////////////////////////////////////////////////////////////////////////
-const char *CScScript::DbgGetFilename() {
+const char *CScScript::dbgGetFilename() {
return _filename;
}
//////////////////////////////////////////////////////////////////////////
HRESULT CScScript::DbgSendScript(IWmeDebugClient *Client) {
- if (_methodThread) Client->OnScriptMethodThreadInit(this, _parentScript, _threadEvent);
- else if (_thread) Client->OnScriptEventThreadInit(this, _parentScript, _threadEvent);
- else Client->OnScriptInit(this);
+ if (_methodThread) Client->onScriptMethodThreadInit(this, _parentScript, _threadEvent);
+ else if (_thread) Client->onScriptEventThreadInit(this, _parentScript, _threadEvent);
+ else Client->onScriptInit(this);
return DbgSendVariables(Client);
return S_OK;
@@ -1589,29 +1589,29 @@ HRESULT CScScript::DbgSendVariables(IWmeDebugClient *Client) { //////////////////////////////////////////////////////////////////////////
-TScriptState CScScript::DbgGetState() {
+TScriptState CScScript::dbgGetState() {
return _state;
}
//////////////////////////////////////////////////////////////////////////
-int CScScript::DbgGetNumBreakpoints() {
+int CScScript::dbgGetNumBreakpoints() {
return _breakpoints.GetSize();
}
//////////////////////////////////////////////////////////////////////////
-int CScScript::DbgGetBreakpoint(int Index) {
+int CScScript::dbgGetBreakpoint(int Index) {
if (Index >= 0 && Index < _breakpoints.GetSize()) return _breakpoints[Index];
else return -1;
}
//////////////////////////////////////////////////////////////////////////
-bool CScScript::DbgSetTracingMode(bool IsTracing) {
+bool CScScript::dbgSetTracingMode(bool IsTracing) {
_tracingMode = IsTracing;
return true;
}
//////////////////////////////////////////////////////////////////////////
-bool CScScript::DbgGetTracingMode() {
+bool CScScript::dbgGetTracingMode() {
return _tracingMode;
}
diff --git a/engines/wintermute/Base/scriptables/ScScript.h b/engines/wintermute/Base/scriptables/ScScript.h index 812ce0359f..12f9ae518a 100644 --- a/engines/wintermute/Base/scriptables/ScScript.h +++ b/engines/wintermute/Base/scriptables/ScScript.h @@ -175,14 +175,14 @@ private: // IWmeDebugScript interface implementation
public:
- virtual int DbgGetLine();
- virtual const char *DbgGetFilename();
- virtual TScriptState DbgGetState();
- virtual int DbgGetNumBreakpoints();
- virtual int DbgGetBreakpoint(int Index);
-
- virtual bool DbgSetTracingMode(bool IsTracing);
- virtual bool DbgGetTracingMode();
+ virtual int dbgGetLine();
+ virtual const char *dbgGetFilename();
+ virtual TScriptState dbgGetState();
+ virtual int dbgGetNumBreakpoints();
+ virtual int dbgGetBreakpoint(int Index);
+
+ virtual bool dbgSetTracingMode(bool IsTracing);
+ virtual bool dbgGetTracingMode();
};
} // end of namespace WinterMute
diff --git a/engines/wintermute/Base/scriptables/ScValue.cpp b/engines/wintermute/Base/scriptables/ScValue.cpp index d762f14feb..5e7f3fbbc1 100644 --- a/engines/wintermute/Base/scriptables/ScValue.cpp +++ b/engines/wintermute/Base/scriptables/ScValue.cpp @@ -864,7 +864,7 @@ int CScValue::compareStrict(CScValue *val1, CScValue *val2) { HRESULT CScValue::DbgSendVariables(IWmeDebugClient *Client, EWmeDebuggerVariableType Type, CScScript *script, unsigned int ScopeID) {
_valIter = _valObject.begin();
while (_valIter != _valObject.end()) {
- Client->OnVariableInit(Type, script, ScopeID, _valIter->_value, _valIter->_key.c_str());
+ Client->onVariableInit(Type, script, ScopeID, _valIter->_value, _valIter->_key.c_str());
_valIter++;
}
return S_OK;
@@ -917,7 +917,7 @@ bool CScValue::setProperty(const char *propName) { //////////////////////////////////////////////////////////////////////////
// IWmeDebugProp
//////////////////////////////////////////////////////////////////////////
-EWmeDebuggerPropType CScValue::DbgGetType() {
+EWmeDebuggerPropType CScValue::dbgGetType() {
switch (getType()) {
case VAL_NULL:
return WME_DBGPROP_NULL;
@@ -939,70 +939,70 @@ EWmeDebuggerPropType CScValue::DbgGetType() { }
//////////////////////////////////////////////////////////////////////////
-int CScValue::DbgGetValInt() {
+int CScValue::dbgGetValInt() {
return getInt();
}
//////////////////////////////////////////////////////////////////////////
-double CScValue::DbgGetValFloat() {
+double CScValue::dbgGetValFloat() {
return getFloat();
}
//////////////////////////////////////////////////////////////////////////
-bool CScValue::DbgGetValBool() {
+bool CScValue::dbgGetValBool() {
return getBool();
}
//////////////////////////////////////////////////////////////////////////
-const char *CScValue::DbgGetValString() {
+const char *CScValue::dbgGetValString() {
return getString();
}
//////////////////////////////////////////////////////////////////////////
-IWmeDebugObject *CScValue::DbgGetValNative() {
+IWmeDebugObject *CScValue::dbgGetValNative() {
return getNative();
}
//////////////////////////////////////////////////////////////////////////
-bool CScValue::DbgSetVal(int value) {
+bool CScValue::dbgSetVal(int value) {
setInt(value);
return true;
}
//////////////////////////////////////////////////////////////////////////
-bool CScValue::DbgSetVal(double value) {
+bool CScValue::dbgSetVal(double value) {
setFloat(value);
return true;
}
//////////////////////////////////////////////////////////////////////////
-bool CScValue::DbgSetVal(bool value) {
+bool CScValue::dbgSetVal(bool value) {
setBool(value);
return true;
}
//////////////////////////////////////////////////////////////////////////
-bool CScValue::DbgSetVal(const char *value) {
+bool CScValue::dbgSetVal(const char *value) {
setString(value);
return true;
}
//////////////////////////////////////////////////////////////////////////
-bool CScValue::DbgSetVal() {
+bool CScValue::dbgSetVal() {
setNULL();
return true;
}
//////////////////////////////////////////////////////////////////////////
-int CScValue::DbgGetNumProperties() {
- if (_valNative && _valNative->_scProp) return _valNative->_scProp->DbgGetNumProperties();
+int CScValue::dbgGetNumProperties() {
+ if (_valNative && _valNative->_scProp) return _valNative->_scProp->dbgGetNumProperties();
else return _valObject.size();
}
//////////////////////////////////////////////////////////////////////////
-bool CScValue::DbgGetProperty(int index, const char **name, IWmeDebugProp **value) {
- if (_valNative && _valNative->_scProp) return _valNative->_scProp->DbgGetProperty(index, name, value);
+bool CScValue::dbgGetProperty(int index, const char **name, IWmeDebugProp **value) {
+ if (_valNative && _valNative->_scProp) return _valNative->_scProp->dbgGetProperty(index, name, value);
else {
int count = 0;
_valIter = _valObject.begin();
@@ -1020,8 +1020,8 @@ bool CScValue::DbgGetProperty(int index, const char **name, IWmeDebugProp **valu }
//////////////////////////////////////////////////////////////////////////
-bool CScValue::DbgGetDescription(char *buf, int bufSize) {
- if (_type == VAL_VARIABLE_REF) return _valRef->DbgGetDescription(buf, bufSize);
+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);
diff --git a/engines/wintermute/Base/scriptables/ScValue.h b/engines/wintermute/Base/scriptables/ScValue.h index 887a39e50f..bad5b18e84 100644 --- a/engines/wintermute/Base/scriptables/ScValue.h +++ b/engines/wintermute/Base/scriptables/ScValue.h @@ -113,27 +113,27 @@ public: // IWmeDebugProp interface implementation
public:
- virtual EWmeDebuggerPropType DbgGetType();
+ virtual EWmeDebuggerPropType dbgGetType();
// getters
- virtual int DbgGetValInt();
- virtual double DbgGetValFloat();
- virtual bool DbgGetValBool();
- virtual const char *DbgGetValString();
- virtual IWmeDebugObject *DbgGetValNative();
+ virtual int dbgGetValInt();
+ virtual double dbgGetValFloat();
+ virtual bool dbgGetValBool();
+ virtual const char *dbgGetValString();
+ virtual IWmeDebugObject *dbgGetValNative();
// setters
- virtual bool DbgSetVal(int Value);
- virtual bool DbgSetVal(double Value);
- virtual bool DbgSetVal(bool Value);
- virtual bool DbgSetVal(const char *Value);
- virtual bool DbgSetVal();
+ virtual bool dbgSetVal(int Value);
+ virtual bool dbgSetVal(double Value);
+ virtual bool dbgSetVal(bool Value);
+ virtual bool dbgSetVal(const char *Value);
+ virtual bool dbgSetVal();
// properties
- virtual int DbgGetNumProperties();
- virtual bool DbgGetProperty(int Index, const char **Name, IWmeDebugProp **Value);
+ virtual int dbgGetNumProperties();
+ virtual bool dbgGetProperty(int Index, const char **Name, IWmeDebugProp **Value);
- virtual bool DbgGetDescription(char *Buf, int BufSize);
+ virtual bool dbgGetDescription(char *Buf, int BufSize);
};
} // end of namespace WinterMute
diff --git a/engines/wintermute/wme_debugger.h b/engines/wintermute/wme_debugger.h index e6cc39a73b..75f57339db 100644 --- a/engines/wintermute/wme_debugger.h +++ b/engines/wintermute/wme_debugger.h @@ -65,102 +65,102 @@ EWmeDebuggerVariableType; class IWmeDebugScript {
public:
virtual ~IWmeDebugScript() {}
- virtual int DbgGetLine() = 0;
- virtual const char *DbgGetFilename() = 0;
- virtual TScriptState DbgGetState() = 0;
+ virtual int dbgGetLine() = 0;
+ virtual const char *dbgGetFilename() = 0;
+ virtual TScriptState dbgGetState() = 0;
- virtual int DbgGetNumBreakpoints() = 0;
- virtual int DbgGetBreakpoint(int Index) = 0;
+ virtual int dbgGetNumBreakpoints() = 0;
+ virtual int dbgGetBreakpoint(int index) = 0;
- virtual bool DbgSetTracingMode(bool IsTracing) = 0;
- virtual bool DbgGetTracingMode() = 0;
+ virtual bool dbgSetTracingMode(bool isTracing) = 0;
+ virtual bool dbgGetTracingMode() = 0;
};
//////////////////////////////////////////////////////////////////////////
class IWmeDebugProp {
public:
- virtual EWmeDebuggerPropType DbgGetType() = 0;
+ virtual EWmeDebuggerPropType dbgGetType() = 0;
virtual ~IWmeDebugProp() {}
// getters
- virtual int DbgGetValInt() = 0;
- virtual double DbgGetValFloat() = 0;
- virtual bool DbgGetValBool() = 0;
- virtual const char *DbgGetValString() = 0;
- virtual IWmeDebugObject *DbgGetValNative() = 0;
+ virtual int dbgGetValInt() = 0;
+ virtual double dbgGetValFloat() = 0;
+ virtual bool dbgGetValBool() = 0;
+ virtual const char *dbgGetValString() = 0;
+ virtual IWmeDebugObject *dbgGetValNative() = 0;
// setters
- virtual bool DbgSetVal(int Value) = 0;
- virtual bool DbgSetVal(double Value) = 0;
- virtual bool DbgSetVal(bool Value) = 0;
- virtual bool DbgSetVal(const char *Value) = 0;
- virtual bool DbgSetVal() = 0;
+ virtual bool dbgSetVal(int value) = 0;
+ virtual bool dbgSetVal(double value) = 0;
+ virtual bool dbgSetVal(bool value) = 0;
+ virtual bool dbgSetVal(const char *value) = 0;
+ virtual bool dbgSetVal() = 0;
// properties
- virtual int DbgGetNumProperties() = 0;
- virtual bool DbgGetProperty(int Index, const char **Name, IWmeDebugProp **Value) = 0;
+ virtual int dbgGetNumProperties() = 0;
+ virtual bool dbgGetProperty(int index, const char **name, IWmeDebugProp **value) = 0;
- virtual bool DbgGetDescription(char *Buf, int BufSize) = 0;
+ virtual bool dbgGetDescription(char *buf, int bufSize) = 0;
};
//////////////////////////////////////////////////////////////////////////
class IWmeDebugObject {
public:
virtual ~IWmeDebugObject() {}
- virtual const char *DbgGetNativeClass() = 0;
- virtual IWmeDebugProp *DbgGetProperty(const char *name) = 0;
+ virtual const char *dbgGetNativeClass() = 0;
+ virtual IWmeDebugProp *dbgGetProperty(const char *name) = 0;
};
//////////////////////////////////////////////////////////////////////////
class IWmeDebugClient {
public:
virtual ~IWmeDebugClient() {}
- virtual bool OnGameInit() = 0;
- virtual bool OnGameShutdown() = 0;
+ virtual bool onGameInit() = 0;
+ virtual bool onGameShutdown() = 0;
- virtual bool OnGameTick() = 0;
+ virtual bool onGameTick() = 0;
- virtual bool OnLog(unsigned int ErrorCode, const char *Text) = 0;
+ virtual bool onLog(unsigned int errorCode, const char *text) = 0;
- virtual bool OnScriptInit(IWmeDebugScript *Script) = 0;
- virtual bool OnScriptEventThreadInit(IWmeDebugScript *Script, IWmeDebugScript *ParentScript, const char *EventName) = 0;
- virtual bool OnScriptMethodThreadInit(IWmeDebugScript *Script, IWmeDebugScript *ParentScript, const char *MethodName) = 0;
- virtual bool OnScriptShutdown(IWmeDebugScript *Script) = 0;
- virtual bool OnScriptChangeLine(IWmeDebugScript *Script, int Line) = 0;
- virtual bool OnScriptChangeScope(IWmeDebugScript *Script, unsigned int ScopeID) = 0;
- virtual bool OnScriptShutdownScope(IWmeDebugScript *Script, unsigned int ScopeID) = 0;
+ virtual bool onScriptInit(IWmeDebugScript *script) = 0;
+ virtual bool onScriptEventThreadInit(IWmeDebugScript *script, IWmeDebugScript *ParentScript, const char *EventName) = 0;
+ virtual bool onScriptMethodThreadInit(IWmeDebugScript *script, IWmeDebugScript *ParentScript, const char *MethodName) = 0;
+ virtual bool onScriptShutdown(IWmeDebugScript *script) = 0;
+ virtual bool onScriptChangeLine(IWmeDebugScript *script, int Line) = 0;
+ virtual bool onScriptChangeScope(IWmeDebugScript *script, unsigned int scopeID) = 0;
+ virtual bool onScriptShutdownScope(IWmeDebugScript *script, unsigned int scopeID) = 0;
- virtual bool OnVariableInit(EWmeDebuggerVariableType Type, IWmeDebugScript *Script, unsigned int ScopeID, IWmeDebugProp *Variable, const char *VariableName) = 0;
- virtual bool OnVariableChangeValue(IWmeDebugProp *Variable, IWmeDebugProp *Value) = 0;
+ virtual bool onVariableInit(EWmeDebuggerVariableType Type, IWmeDebugScript *script, unsigned int scopeID, IWmeDebugProp *variable, const char *variableName) = 0;
+ virtual bool onVariableChangeValue(IWmeDebugProp *variable, IWmeDebugProp *value) = 0;
- virtual bool OnScriptHitBreakpoint(IWmeDebugScript *Script, int Line) = 0;
+ virtual bool onScriptHitBreakpoint(IWmeDebugScript *script, int line) = 0;
};
//////////////////////////////////////////////////////////////////////////
class IWmeDebugServer {
public:
virtual ~IWmeDebugServer() {}
- virtual bool AttachClient(IWmeDebugClient *Client) = 0;
- virtual bool DetachClient(IWmeDebugClient *Client) = 0;
+ virtual bool attachClient(IWmeDebugClient *client) = 0;
+ virtual bool detachClient(IWmeDebugClient *client) = 0;
- virtual bool QueryData(IWmeDebugClient *Client) = 0;
+ virtual bool queryData(IWmeDebugClient *client) = 0;
- virtual int GetPropInt(const char *PropName) = 0;
- virtual double GetPropFloat(const char *PropName) = 0;
- virtual const char *GetPropString(const char *PropName) = 0;
- virtual bool GetPropBool(const char *PropName) = 0;
+ virtual int getPropInt(const char *propName) = 0;
+ virtual double getPropFloat(const char *propName) = 0;
+ virtual const char *getPropString(const char *propName) = 0;
+ virtual bool getPropBool(const char *propName) = 0;
- virtual bool SetProp(const char *PropName, int PropValue) = 0;
- virtual bool SetProp(const char *PropName, double PropValue) = 0;
- virtual bool SetProp(const char *PropName, const char *PropValue) = 0;
- virtual bool SetProp(const char *PropName, bool PropValue) = 0;
+ virtual bool setProp(const char *propName, int propValue) = 0;
+ virtual bool setProp(const char *propName, double propValue) = 0;
+ virtual bool setProp(const char *propName, const char *propValue) = 0;
+ virtual bool setProp(const char *propName, bool propValue) = 0;
- virtual bool ResolveFilename(const char *RelativeFilename, char *AbsFilenameBuf, int AbsBufSize) = 0;
+ virtual bool resolveFilename(const char *relativeFilename, char *absFilenameBuf, int absBufSize) = 0;
- virtual bool AddBreakpoint(const char *ScriptFilename, int Line) = 0;
- virtual bool RemoveBreakpoint(const char *ScriptFilename, int Line) = 0;
+ virtual bool addBreakpoint(const char *scriptFilename, int line) = 0;
+ virtual bool removeBreakpoint(const char *scriptFilename, int line) = 0;
- virtual bool ContinueExecution() = 0;
+ virtual bool continueExecution() = 0;
};
|