[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22786] branches/blender2.5/blender/source /gameengine: remove all python api functions deprecated in 2.49

Campbell Barton ideasman42 at gmail.com
Wed Aug 26 00:51:18 CEST 2009


Revision: 22786
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22786
Author:   campbellbarton
Date:     2009-08-26 00:51:18 +0200 (Wed, 26 Aug 2009)

Log Message:
-----------
remove all python api functions deprecated in 2.49

Modified Paths:
--------------
    branches/blender2.5/blender/source/gameengine/Converter/BL_ActionActuator.cpp
    branches/blender2.5/blender/source/gameengine/Converter/BL_ActionActuator.h
    branches/blender2.5/blender/source/gameengine/Converter/BL_ShapeActionActuator.cpp
    branches/blender2.5/blender/source/gameengine/Converter/BL_ShapeActionActuator.h
    branches/blender2.5/blender/source/gameengine/Expressions/Value.cpp
    branches/blender2.5/blender/source/gameengine/Expressions/Value.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_ActuatorSensor.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_ActuatorSensor.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_DelaySensor.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_DelaySensor.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_IController.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_IController.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_ILogicBrick.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_ILogicBrick.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_ISensor.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_ISensor.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_JoystickSensor.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_JoystickSensor.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_KeyboardSensor.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_MouseSensor.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_MouseSensor.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_PropertyActuator.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_PropertyActuator.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_PropertySensor.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_PropertySensor.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_PythonController.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_RandomActuator.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_RandomActuator.h
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_RandomSensor.cpp
    branches/blender2.5/blender/source/gameengine/GameLogic/SCA_RandomSensor.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_Camera.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_Camera.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_CameraActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_CameraActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_ConstraintActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_ConstraintActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_GameActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_GameActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_GameObject.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_GameObject.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_IpoActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_IpoActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_MeshProxy.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_MouseFocusSensor.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_ObjectActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_ObjectActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_ParentActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_ParentActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_PythonInit.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_RadarSensor.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_RadarSensor.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_RaySensor.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_RaySensor.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_SCA_DynamicActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_SCA_DynamicActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_SCA_ReplaceMeshActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_SCA_ReplaceMeshActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_Scene.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_Scene.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_SceneActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_SceneActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_SoundActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_SoundActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_StateActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_StateActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_TouchSensor.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_TouchSensor.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_TrackToActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_TrackToActuator.h
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_VisibilityActuator.cpp
    branches/blender2.5/blender/source/gameengine/Ketsji/KX_VisibilityActuator.h

Modified: branches/blender2.5/blender/source/gameengine/Converter/BL_ActionActuator.cpp
===================================================================
--- branches/blender2.5/blender/source/gameengine/Converter/BL_ActionActuator.cpp	2009-08-25 21:53:52 UTC (rev 22785)
+++ branches/blender2.5/blender/source/gameengine/Converter/BL_ActionActuator.cpp	2009-08-25 22:51:18 UTC (rev 22786)
@@ -436,365 +436,6 @@
 /* Python functions                                                          */
 /* ------------------------------------------------------------------------- */
 
-/*     setStart                                                              */
-const char BL_ActionActuator::GetAction_doc[] = 
-"getAction()\n"
-"\tReturns a string containing the name of the current action.\n";
-
-PyObject* BL_ActionActuator::PyGetAction(PyObject* args, 
-										 PyObject* kwds) {
-	ShowDeprecationWarning("getAction()", "the action property");
-
-	if (m_action){
-		return PyUnicode_FromString(m_action->id.name+2);
-	}
-	Py_RETURN_NONE;
-}
-
-/*     getProperty                                                             */
-const char BL_ActionActuator::GetProperty_doc[] = 
-"getProperty()\n"
-"\tReturns the name of the property to be used in FromProp mode.\n";
-
-PyObject* BL_ActionActuator::PyGetProperty(PyObject* args, 
-										   PyObject* kwds) {
-	ShowDeprecationWarning("getProperty()", "the property property");
-
-	PyObject *result;
-	
-	result = Py_BuildValue("s", (const char *)m_propname);
-	
-	return result;
-}
-
-/*     getProperty                                                             */
-const char BL_ActionActuator::GetFrameProperty_doc[] = 
-"getFrameProperty()\n"
-"\tReturns the name of the property, that is set to the current frame number.\n";
-
-PyObject* BL_ActionActuator::PyGetFrameProperty(PyObject* args, 
-										   PyObject* kwds) {
-	ShowDeprecationWarning("getFrameProperty()", "the frameProperty property");
-
-	PyObject *result;
-	
-	result = Py_BuildValue("s", (const char *)m_framepropname);
-	
-	return result;
-}
-
-/*     getFrame                                                              */
-const char BL_ActionActuator::GetFrame_doc[] = 
-"getFrame()\n"
-"\tReturns the current frame number.\n";
-
-PyObject* BL_ActionActuator::PyGetFrame(PyObject* args, 
-										PyObject* kwds) {
-	ShowDeprecationWarning("getFrame()", "the frame property");
-
-	PyObject *result;
-	
-	result = Py_BuildValue("f", m_localtime);
-	
-	return result;
-}
-
-/*     getEnd                                                                */
-const char BL_ActionActuator::GetEnd_doc[] = 
-"getEnd()\n"
-"\tReturns the last frame of the action.\n";
-
-PyObject* BL_ActionActuator::PyGetEnd(PyObject* args, 
-									  PyObject* kwds) {
-	ShowDeprecationWarning("getEnd()", "the end property");
-
-	PyObject *result;
-	
-	result = Py_BuildValue("f", m_endframe);
-	
-	return result;
-}
-
-/*     getStart                                                              */
-const char BL_ActionActuator::GetStart_doc[] = 
-"getStart()\n"
-"\tReturns the starting frame of the action.\n";
-
-PyObject* BL_ActionActuator::PyGetStart(PyObject* args, 
-										PyObject* kwds) {
-	ShowDeprecationWarning("getStart()", "the start property");
-
-	PyObject *result;
-	
-	result = Py_BuildValue("f", m_startframe);
-	
-	return result;
-}
-
-/*     getBlendin                                                            */
-const char BL_ActionActuator::GetBlendin_doc[] = 
-"getBlendin()\n"
-"\tReturns the number of interpolation animation frames to be\n"
-"\tgenerated when this actuator is triggered.\n";
-
-PyObject* BL_ActionActuator::PyGetBlendin(PyObject* args, 
-										  PyObject* kwds) {
-	ShowDeprecationWarning("getBlendin()", "the blendin property");
-
-	PyObject *result;
-	
-	result = Py_BuildValue("f", m_blendin);
-	
-	return result;
-}
-
-/*     getPriority                                                           */
-const char BL_ActionActuator::GetPriority_doc[] = 
-"getPriority()\n"
-"\tReturns the priority for this actuator.  Actuators with lower\n"
-"\tPriority numbers will override actuators with higher numbers.\n";
-
-PyObject* BL_ActionActuator::PyGetPriority(PyObject* args, 
-										   PyObject* kwds) {
-	ShowDeprecationWarning("getPriority()", "the priority property");
-
-	PyObject *result;
-	
-	result = Py_BuildValue("i", m_priority);
-	
-	return result;
-}
-
-/*     setAction                                                             */
-const char BL_ActionActuator::SetAction_doc[] = 
-"setAction(action, (reset))\n"
-"\t - action    : The name of the action to set as the current action.\n"
-"\t - reset     : Optional parameter indicating whether to reset the\n"
-"\t               blend timer or not.  A value of 1 indicates that the\n"
-"\t               timer should be reset.  A value of 0 will leave it\n"
-"\t               unchanged.  If reset is not specified, the timer will"
-"\t	              be reset.\n";
-
-PyObject* BL_ActionActuator::PySetAction(PyObject* args, 
-										 PyObject* kwds) {
-	ShowDeprecationWarning("setAction()", "the action property");
-
-	char *string;
-	int	reset = 1;
-
-	if (PyArg_ParseTuple(args,"s|i:setAction",&string, &reset))
-	{
-		bAction *action;
-		
-		action = (bAction*)SCA_ILogicBrick::m_sCurrentLogicManager->GetActionByName(STR_String(string));
-		
-		if (!action){
-			/* NOTE!  Throw an exception or something */
-			//			printf ("setAction failed: Action not found\n", string);
-		}
-		else{
-			m_action=action;
-			if (reset)
-				m_blendframe = 0;
-		}
-	}
-	else {
-		return NULL;
-	}
-	
-	Py_RETURN_NONE;
-}
-
-/*     setStart                                                              */
-const char BL_ActionActuator::SetStart_doc[] = 
-"setStart(start)\n"
-"\t - start     : Specifies the starting frame of the animation.\n";
-
-PyObject* BL_ActionActuator::PySetStart(PyObject* args, 
-										PyObject* kwds) {
-	ShowDeprecationWarning("setStart()", "the start property");
-
-	float start;
-	
-	if (PyArg_ParseTuple(args,"f:setStart",&start))
-	{
-		m_startframe = start;
-	}
-	else {
-		return NULL;
-	}
-	
-	Py_RETURN_NONE;
-}
-
-/*     setEnd                                                                */
-const char BL_ActionActuator::SetEnd_doc[] = 
-"setEnd(end)\n"
-"\t - end       : Specifies the ending frame of the animation.\n";
-
-PyObject* BL_ActionActuator::PySetEnd(PyObject* args, 
-									  PyObject* kwds) {
-	ShowDeprecationWarning("setEnd()", "the end property");
-
-	float end;
-	
-	if (PyArg_ParseTuple(args,"f:setEnd",&end))
-	{
-		m_endframe = end;
-	}
-	else {
-		return NULL;
-	}
-	
-	Py_RETURN_NONE;
-}
-
-/*     setBlendin                                                            */
-const char BL_ActionActuator::SetBlendin_doc[] = 
-"setBlendin(blendin)\n"
-"\t - blendin   : Specifies the number of frames of animation to generate\n"
-"\t               when making transitions between actions.\n";
-
-PyObject* BL_ActionActuator::PySetBlendin(PyObject* args, 
-										  PyObject* kwds) {
-	ShowDeprecationWarning("setBlendin()", "the blendin property");
-
-	float blendin;
-	
-	if (PyArg_ParseTuple(args,"f:setBlendin",&blendin))
-	{
-		m_blendin = blendin;
-	}
-	else {
-		return NULL;
-	}
-	
-	Py_RETURN_NONE;
-}
-
-/*     setBlendtime                                                          */
-const char BL_ActionActuator::SetBlendtime_doc[] = 
-"setBlendtime(blendtime)\n"
-"\t - blendtime : Allows the script to directly modify the internal timer\n"
-"\t               used when generating transitions between actions.  This\n"
-"\t               parameter must be in the range from 0.0 to 1.0.\n";
-
-PyObject* BL_ActionActuator::PySetBlendtime(PyObject* args, 
-										  PyObject* kwds) {
-	ShowDeprecationWarning("setBlendtime()", "the blendtime property");
-
-	float blendframe;
-	
-	if (PyArg_ParseTuple(args,"f:setBlendtime",&blendframe))
-	{
-		m_blendframe = blendframe * m_blendin;
-		if (m_blendframe<0)
-			m_blendframe = 0;
-		if (m_blendframe>m_blendin)
-			m_blendframe = m_blendin;
-	}
-	else {
-		return NULL;
-	}
-	
-	Py_RETURN_NONE;
-}
-
-/*     setPriority                                                           */
-const char BL_ActionActuator::SetPriority_doc[] = 
-"setPriority(priority)\n"
-"\t - priority  : Specifies the new priority.  Actuators will lower\n"
-"\t               priority numbers will override actuators with higher\n"
-"\t               numbers.\n";
-
-PyObject* BL_ActionActuator::PySetPriority(PyObject* args, 
-										   PyObject* kwds) {
-	ShowDeprecationWarning("setPriority()", "the priority property");
-
-	int priority;
-	
-	if (PyArg_ParseTuple(args,"i:setPriority",&priority))
-	{
-		m_priority = priority;
-	}
-	else {
-		return NULL;
-	}
-	
-	Py_RETURN_NONE;
-}
-
-/*     setFrame                                                              */
-const char BL_ActionActuator::SetFrame_doc[] = 
-"setFrame(frame)\n"
-"\t - frame     : Specifies the new current frame for the animation\n";
-
-PyObject* BL_ActionActuator::PySetFrame(PyObject* args, 
-										PyObject* kwds) {
-	ShowDeprecationWarning("setFrame()", "the frame property");
-
-	float frame;
-	
-	if (PyArg_ParseTuple(args,"f:setFrame",&frame))
-	{
-		m_localtime = frame;
-		if (m_localtime<m_startframe)
-			m_localtime=m_startframe;
-		else if (m_localtime>m_endframe)
-			m_localtime=m_endframe;
-	}
-	else {
-		return NULL;
-	}
-	
-	Py_RETURN_NONE;
-}
-
-/*     setProperty                                                           */
-const char BL_ActionActuator::SetProperty_doc[] = 
-"setProperty(prop)\n"
-"\t - prop      : A string specifying the property name to be used in\n"
-"\t               FromProp playback mode.\n";
-
-PyObject* BL_ActionActuator::PySetProperty(PyObject* args, 
-										   PyObject* kwds) {
-	ShowDeprecationWarning("setProperty()", "the property property");
-
-	char *string;
-	
-	if (PyArg_ParseTuple(args,"s:setProperty",&string))
-	{
-		m_propname = string;
-	}
-	else {
-		return NULL;
-	}
-	
-	Py_RETURN_NONE;
-}
-
-/*     setFrameProperty                                                          */
-const char BL_ActionActuator::SetFrameProperty_doc[] = 
-"setFrameProperty(prop)\n"
-"\t - prop      : A string specifying the property of the frame set up update.\n";
-
-PyObject* BL_ActionActuator::PySetFrameProperty(PyObject* args, 
-										   PyObject* kwds) {
-	ShowDeprecationWarning("setFrameProperty()", "the frameProperty property");
-
-	char *string;
-	

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list