aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/scriptables/script_ext_math.cpp
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-21 21:01:47 +0200
committerEinar Johan Trøan Sømåen2012-07-21 21:01:47 +0200
commitb5a07fef8ebf29f7f44b15d9b34799c7e115fdad (patch)
tree76599c7b51aa6ad0447cb6ff6847f9eba54a679a /engines/wintermute/base/scriptables/script_ext_math.cpp
parent2e82471240804df65acdf51c43ea044cbb81ae68 (diff)
downloadscummvm-rg350-b5a07fef8ebf29f7f44b15d9b34799c7e115fdad.tar.gz
scummvm-rg350-b5a07fef8ebf29f7f44b15d9b34799c7e115fdad.tar.bz2
scummvm-rg350-b5a07fef8ebf29f7f44b15d9b34799c7e115fdad.zip
WINTERMUTE: Get rid of the C-prefix for class-definitions.
Diffstat (limited to 'engines/wintermute/base/scriptables/script_ext_math.cpp')
-rw-r--r--engines/wintermute/base/scriptables/script_ext_math.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/engines/wintermute/base/scriptables/script_ext_math.cpp b/engines/wintermute/base/scriptables/script_ext_math.cpp
index 22b08087b7..1c37a15aa9 100644
--- a/engines/wintermute/base/scriptables/script_ext_math.cpp
+++ b/engines/wintermute/base/scriptables/script_ext_math.cpp
@@ -40,26 +40,26 @@ namespace WinterMute {
//////////////////////////////////////////////////////////////////////
-IMPLEMENT_PERSISTENT(CSXMath, true)
+IMPLEMENT_PERSISTENT(SXMath, true)
-CBScriptable *makeSXMath(CBGame *inGame) {
- return new CSXMath(inGame);
+BaseScriptable *makeSXMath(BaseGame *inGame) {
+ return new SXMath(inGame);
}
//////////////////////////////////////////////////////////////////////////
-CSXMath::CSXMath(CBGame *inGame): CBScriptable(inGame) {
+SXMath::SXMath(BaseGame *inGame): BaseScriptable(inGame) {
}
//////////////////////////////////////////////////////////////////////////
-CSXMath::~CSXMath() {
+SXMath::~SXMath() {
}
//////////////////////////////////////////////////////////////////////////
-bool CSXMath::scCallMethod(CScScript *script, CScStack *stack, CScStack *thisStack, const char *name) {
+bool SXMath::scCallMethod(ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) {
//////////////////////////////////////////////////////////////////////////
// Abs
//////////////////////////////////////////////////////////////////////////
@@ -250,7 +250,7 @@ bool CSXMath::scCallMethod(CScScript *script, CScStack *stack, CScStack *thisSta
//////////////////////////////////////////////////////////////////////////
-CScValue *CSXMath::scGetProperty(const char *name) {
+ScValue *SXMath::scGetProperty(const char *name) {
_scValue->setNULL();
//////////////////////////////////////////////////////////////////////////
@@ -274,21 +274,21 @@ CScValue *CSXMath::scGetProperty(const char *name) {
//////////////////////////////////////////////////////////////////////////
-double CSXMath::degreeToRadian(double value) {
+double SXMath::degreeToRadian(double value) {
return value * (M_PI / 180.0f);
}
//////////////////////////////////////////////////////////////////////////
-double CSXMath::radianToDegree(double value) {
+double SXMath::radianToDegree(double value) {
return value * (180.0f / M_PI);
}
//////////////////////////////////////////////////////////////////////////
-bool CSXMath::persist(CBPersistMgr *persistMgr) {
+bool SXMath::persist(BasePersistenceManager *persistMgr) {
- CBScriptable::persist(persistMgr);
+ BaseScriptable::persist(persistMgr);
return STATUS_OK;
}