aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/script/luascript.h
diff options
context:
space:
mode:
authorEugene Sandulenko2010-10-03 13:25:22 +0000
committerEugene Sandulenko2010-10-13 00:08:28 +0000
commit54ccc8f4c906cd4f84c955581c0368886a7a9c78 (patch)
tree04b7ce0ef984565e4824ad4b73dc32493e65f018 /engines/sword25/script/luascript.h
parent1e15d8efb73503d9f613cc60023771b0c11f0dd6 (diff)
downloadscummvm-rg350-54ccc8f4c906cd4f84c955581c0368886a7a9c78.tar.gz
scummvm-rg350-54ccc8f4c906cd4f84c955581c0368886a7a9c78.tar.bz2
scummvm-rg350-54ccc8f4c906cd4f84c955581c0368886a7a9c78.zip
SWORD25: Enforced code naming conventions in script/*
svn-id: r53391
Diffstat (limited to 'engines/sword25/script/luascript.h')
-rw-r--r--engines/sword25/script/luascript.h38
1 files changed, 11 insertions, 27 deletions
diff --git a/engines/sword25/script/luascript.h b/engines/sword25/script/luascript.h
index 831a994ea2..f557ae45f1 100644
--- a/engines/sword25/script/luascript.h
+++ b/engines/sword25/script/luascript.h
@@ -35,19 +35,11 @@
#ifndef SWORD25_LUASCRIPT_H
#define SWORD25_LUASCRIPT_H
-// -----------------------------------------------------------------------------
-// Includes
-// -----------------------------------------------------------------------------
-
#include "common/str.h"
#include "common/str-array.h"
#include "sword25/kernel/common.h"
#include "sword25/script/script.h"
-// -----------------------------------------------------------------------------
-// Forward declarations
-// -----------------------------------------------------------------------------
-
namespace Lua {
struct lua_State;
@@ -60,16 +52,8 @@ namespace Sword25 {
class Kernel;
-// -----------------------------------------------------------------------------
-// Class declaration
-// -----------------------------------------------------------------------------
-
class LuaScriptEngine : public ScriptEngine {
public:
- // -----------------------------------------------------------------------------
- // Constructor / Destructor
- // -----------------------------------------------------------------------------
-
LuaScriptEngine(Kernel *KernelPtr);
virtual ~LuaScriptEngine();
@@ -77,28 +61,28 @@ public:
* Initialises the scripting engine
* @return Returns true if successful, otherwise false.
*/
- virtual bool Init();
+ virtual bool init();
/**
* Loads a script file and executes it
* @param FileName The filename of the script
* @return Returns true if successful, otherwise false.
*/
- virtual bool ExecuteFile(const Common::String &FileName);
+ virtual bool executeFile(const Common::String &fileName);
/**
* Execute a string of script code
* @param Code A string of script code
* @return Returns true if successful, otherwise false.
*/
- virtual bool ExecuteString(const Common::String &Code);
+ virtual bool executeString(const Common::String &code);
/**
* Returns a pointer to the main object of the scripting language
* @remark Using this method breaks the encapsulation of the language
*/
- virtual void *GetScriptObject() {
- return m_State;
+ virtual void *getScriptObject() {
+ return _state;
}
/**
@@ -107,7 +91,7 @@ public:
* @remark How the command line parameters will be used by scripts is
* dependant on the particular implementation.
*/
- virtual void SetCommandLine(const Common::StringArray &CommandLineParameters);
+ virtual void setCommandLine(const Common::StringArray &commandLineParameters);
/**
* @remark The Lua stack is cleared by this method
@@ -119,12 +103,12 @@ public:
virtual bool unpersist(InputPersistenceBlock &reader);
private:
- lua_State *m_State;
- int m_PcallErrorhandlerRegistryIndex;
+ lua_State *_state;
+ int _pcallErrorhandlerRegistryIndex;
- bool RegisterStandardLibs();
- bool RegisterStandardLibExtensions();
- bool ExecuteBuffer(const byte *Data, uint Size, const Common::String &Name) const;
+ bool registerStandardLibs();
+ bool registerStandardLibExtensions();
+ bool executeBuffer(const byte *data, uint size, const Common::String &name) const;
};
} // End of namespace Sword25