summaryrefslogtreecommitdiffstats
path: root/src/script/script.h
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-05-18 16:44:22 +0200
committerkrzys-h <krzys_h@interia.pl>2013-05-18 18:04:48 +0200
commit47d7b805070e317894efbed653b1d44cd789f2fa (patch)
treefeb09d4dd408f53371b2fbd6fd2f8d37a70554a3 /src/script/script.h
parent07839a561fa876539484fdc44e68d3f17e20a89b (diff)
downloadcolobot-47d7b805070e317894efbed653b1d44cd789f2fa.tar.gz
colobot-47d7b805070e317894efbed653b1d44cd789f2fa.tar.bz2
colobot-47d7b805070e317894efbed653b1d44cd789f2fa.zip
Added object.factory(cat)
Diffstat (limited to 'src/script/script.h')
-rw-r--r--src/script/script.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/script/script.h b/src/script/script.h
index cd2a122..481df8e 100644
--- a/src/script/script.h
+++ b/src/script/script.h
@@ -94,7 +94,6 @@ protected:
bool Compile();
private:
-
static CBotTypResult cNull(CBotVar* &var, void* user);
static CBotTypResult cOneFloat(CBotVar* &var, void* user);
static CBotTypResult cTwoFloat(CBotVar* &var, void* user);
@@ -191,6 +190,11 @@ private:
static bool rPenColor(CBotVar* var, CBotVar* result, int& exception, void* user);
static bool rPenWidth(CBotVar* var, CBotVar* result, int& exception, void* user);
+public:
+ static CBotTypResult cClassOneFloat(CBotVar* thisclass, CBotVar* &var);
+ static bool rFactory(CBotVar* thisclass, CBotVar* var, CBotVar* result, int& exception);
+
+private:
static bool Process(CScript* script, CBotVar* result, int &exception);
static CObject* SearchInfo(CScript* script, CObject* object, float power);