2.50: svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r19323...
[blender.git] / source / gameengine / GameLogic / SCA_ILogicBrick.h
index 70d499416135f0a7c8e18f66c9ac7a1e47fcb0a5..e59d05ea0516f111bbcccf5a1f1581176dbde646 100644 (file)
@@ -69,7 +69,7 @@ public:
        virtual CValue* CalcFinal(VALUE_DATA_TYPE dtype, VALUE_OPERATOR op, CValue *val);
 
        virtual const STR_String &      GetText();
-       virtual float           GetNumber();
+       virtual double          GetNumber();
        virtual STR_String      GetName();
        virtual void            SetName(STR_String name);
        virtual void            ReplicaSetName(STR_String name);
@@ -79,8 +79,8 @@ public:
 
        virtual bool            LessComparedTo(SCA_ILogicBrick* other);
        
-       virtual PyObject* _getattr(const char *attr);
-       virtual int _setattr(const char *attr, PyObject *value);
+       virtual PyObject* py_getattro(PyObject *attr);
+       virtual int py_setattro(PyObject *attr, PyObject *value);
 
        static class SCA_LogicManager*  m_sCurrentLogicManager;
 
@@ -88,8 +88,10 @@ public:
        // python methods
 
        KX_PYMETHOD_NOARGS(SCA_ILogicBrick,GetOwner);
-       KX_PYMETHOD(SCA_ILogicBrick,SetExecutePriority);
+       KX_PYMETHOD_VARARGS(SCA_ILogicBrick,SetExecutePriority);
        KX_PYMETHOD_NOARGS(SCA_ILogicBrick,GetExecutePriority);
+       
+       static PyObject*        pyattr_get_owner(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef);
 
        // check that attribute is a property
        static int CheckProperty(void *self, const PyAttributeDef *attrdef);