Last of the config.h mods...

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

added to these files.

Kent
--
mein@cs.umn.edu
This commit is contained in:
2002-11-25 15:29:57 +00:00
parent d0e346d544
commit 209a2ede2c
212 changed files with 799 additions and 146 deletions

View File

@@ -42,6 +42,10 @@
#include "NG_NetworkMessage.h"
#include "NG_NetworkObject.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_NetworkEventManager::KX_NetworkEventManager(class SCA_LogicManager*
logicmgr, class NG_NetworkDeviceInterface *ndi) :
SCA_EventManager(NETWORK_EVENTMGR), m_logicmgr(logicmgr), m_ndi(ndi)

View File

@@ -34,6 +34,10 @@
#include "NG_NetworkScene.h"
#include "KX_NetworkMessageActuator.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_NetworkMessageActuator::KX_NetworkMessageActuator(
SCA_IObject* gameobj, // the actuator controlling object
NG_NetworkScene* networkscene, // needed for replication

View File

@@ -41,6 +41,10 @@
#include "ListValue.h"
#include "StringValue.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef NAN_NET_DEBUG
#include <iostream>
#endif

View File

@@ -29,3 +29,7 @@
*
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

View File

@@ -29,3 +29,8 @@
*
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

View File

@@ -39,6 +39,10 @@
#include "SND_Scene.h" // needed for replication
#include <iostream>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Native functions */
/* ------------------------------------------------------------------------- */
@@ -249,4 +253,4 @@ PyObject* KX_CDActuator::PyGetGain(PyObject* self, PyObject* args, PyObject* kwd
PyObject* result = PyFloat_FromDouble(gain);
return result;
}
}

View File

@@ -33,6 +33,10 @@
#include "KX_Camera.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_Camera::KX_Camera(void* sgReplicationInfo,
SG_Callbacks callbacks,
const RAS_CameraData& camdata)

View File

@@ -41,6 +41,10 @@
STR_String KX_CameraActuator::X_AXIS_STRING = "x";
STR_String KX_CameraActuator::Y_AXIS_STRING = "y";
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Native functions */

View File

@@ -30,12 +30,13 @@
*/
#include "KX_CameraIpoSGController.h"
#include "KX_ScalarInterpolator.h"
#include "KX_Camera.h"
#include "RAS_CameraData.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
bool KX_CameraIpoSGController::Update(double currentTime)
{

View File

@@ -38,6 +38,11 @@
#include "MT_Point3.h"
#include "MT_Matrix3x3.h"
#include "KX_GameObject.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Native functions */
/* ------------------------------------------------------------------------- */

View File

@@ -30,10 +30,13 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#include <Python.h>
#include "KX_ConstraintWrapper.h"
#include "PHY_IPhysicsEnvironment.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_ConstraintWrapper::KX_ConstraintWrapper(
PHY_ConstraintType ctype,
int constraintId,

View File

@@ -48,6 +48,11 @@
#include "PHY_Pro.h"
#include "KX_MotionState.h" // bridge between motionstate and scenegraph node
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef USE_ODE
#include "KX_OdePhysicsController.h"

View File

@@ -30,3 +30,8 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#include "KX_EmptyObject.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

View File

@@ -38,6 +38,10 @@
#include "KX_Scene.h"
#include "KX_KetsjiEngine.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Native functions */
/* ------------------------------------------------------------------------- */

View File

@@ -31,6 +31,10 @@
* Game object wrapper
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
// This warning tells us about truncation of __long__ stl-generated names.
// It can occasionally cause DevStudio to have internal compiler warnings.

View File

@@ -31,6 +31,10 @@
* Scenegraph controller for ipos.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
// This warning tells us about truncation of __long__ stl-generated names.
// It can occasionally cause DevStudio to have internal compiler warnings.

View File

@@ -31,6 +31,9 @@
*/
#include "KX_IPhysicsController.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_IPhysicsController::KX_IPhysicsController(bool dyna,void* userdata)

View File

@@ -35,6 +35,9 @@
#include "KX_IpoActuator.h"
#include "KX_GameObject.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Type strings */

View File

@@ -30,6 +30,11 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
* The engine ties all game modules together.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#pragma warning (disable : 4786)
#endif //WIN32

View File

@@ -29,6 +29,10 @@
* ***** END GPL/BL DUAL LICENSE BLOCK *****
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#pragma warning (disable : 4786)

View File

@@ -30,12 +30,13 @@
*/
#include "KX_LightIpoSGController.h"
#include "KX_ScalarInterpolator.h"
#include "KX_Light.h"
#include "RAS_LightObject.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
bool KX_LightIpoSGController::Update(double currentTime)
{

View File

@@ -30,11 +30,13 @@
*/
#include "KX_MeshProxy.h"
#include "RAS_IPolygonMaterial.h"
#include "RAS_MeshObject.h"
#include "KX_VertexProxy.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
PyTypeObject KX_MeshProxy::Type = {
PyObject_HEAD_INIT(&PyType_Type)

View File

@@ -32,6 +32,10 @@
#include "KX_MotionState.h"
#include "SG_Spatial.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_MotionState::KX_MotionState(SG_Spatial* node) : m_node(node)
{

View File

@@ -31,6 +31,10 @@
* KX_MouseFocusSensor determines mouse in/out/over events.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
// This warning tells us about truncation of __long__ stl-generated names.
// It can occasionally cause DevStudio to have internal compiler warnings.
@@ -38,19 +42,13 @@
#endif
#include "MT_Point3.h"
#include "KX_ClientObjectInfo.h"
#include "RAS_FramingManager.h"
#include "RAS_ICanvas.h"
#include "RAS_IRasterizer.h"
#include "SCA_IScene.h"
#include "KX_Scene.h"
#include "KX_Camera.h"
#include "KX_MouseFocusSensor.h"
/* ------------------------------------------------------------------------- */

View File

@@ -38,6 +38,9 @@
#include "KX_TouchEventManager.h"
#include "KX_Scene.h" // needed to create a replica
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef PHYSICS_NOT_YET

View File

@@ -30,10 +30,12 @@
*/
#include "KX_ObColorIpoSGController.h"
#include "KX_ScalarInterpolator.h"
#include "KX_GameObject.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
bool KX_ObColorIpoSGController::Update(double currentTime)
{

View File

@@ -36,6 +36,9 @@
#include "KX_GameObject.h"
#include "KX_IPhysicsController.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Native functions */

View File

@@ -23,6 +23,9 @@
#include "KX_GameObject.h"
#include "KX_MotionState.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_OdePhysicsController::KX_OdePhysicsController(
bool dyna,

View File

@@ -30,11 +30,13 @@
*/
#include "KX_OrientationInterpolator.h"
#include "MT_Matrix3x3.h"
#include "KX_IScalarInterpolator.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void KX_OrientationInterpolator::Execute(float currentTime) const {
MT_Vector3 eul(m_ipos[0]->GetValue(currentTime),
m_ipos[1]->GetValue(currentTime),

View File

@@ -34,6 +34,10 @@
#include "PHY_IPhysicsEnvironment.h"
#include "PHY_IPhysicsController.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_PhysicsObjectWrapper::KX_PhysicsObjectWrapper(
PHY_IPhysicsController* ctrl,
PHY_IPhysicsEnvironment* physenv,PyTypeObject *T)

View File

@@ -30,11 +30,13 @@
*/
#include "KX_PositionInterpolator.h"
#include "MT_Point3.h"
#include "KX_IScalarInterpolator.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void KX_PositionInterpolator::Execute(float currentTime) const {
m_target.setValue(m_ipos[0]->GetValue(currentTime),
m_ipos[1]->GetValue(currentTime),

View File

@@ -35,6 +35,9 @@
#include "KX_PhysicsObjectWrapper.h"
#include "PHY_IPhysicsController.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
// nasty glob variable to connect scripting language
// if there is a better way (without global), please do so!

View File

@@ -31,6 +31,10 @@
* Initialize Python thingies.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#pragma warning (disable : 4786)
#endif //WIN32

View File

@@ -30,8 +30,12 @@
*/
#include "KX_RadarSensor.h"
#include "KX_GameObject.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/**
* RadarSensor constructor. Creates a near-sensor derived class, with a cone collision shape.
*/

View File

@@ -35,11 +35,16 @@
#include "SCA_LogicManager.h"
#include "SCA_ISensor.h"
#include <vector>
using namespace std;
#include <iostream>
#include <stdio.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void KX_RayEventManager::NextFrame(double curtime,double deltatime)
{
for (vector<class SCA_ISensor*>::const_iterator i= m_sensors.begin();!(i==m_sensors.end());i++)

View File

@@ -41,6 +41,9 @@
#include "KX_GameObject.h"
#include "KX_Scene.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_RaySensor::KX_RaySensor(class SCA_EventManager* eventmgr,
SCA_IObject* gameobj,

View File

@@ -42,6 +42,10 @@
#include "KX_GameObject.h"
#include "KX_IPhysicsController.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Native functions */
/* ------------------------------------------------------------------------- */

View File

@@ -41,6 +41,10 @@
#include "KX_SCA_EndObjectActuator.h"
#include "SCA_IScene.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_SCA_EndObjectActuator::KX_SCA_EndObjectActuator(SCA_IObject *gameobj,
SCA_IScene* scene,
PyTypeObject* T):

View File

@@ -38,9 +38,12 @@
// Please look here for revision history.
#include "KX_SCA_ReplaceMeshActuator.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Python functions */
/* ------------------------------------------------------------------------- */

View File

@@ -31,6 +31,9 @@
#include "KX_SG_NodeRelationships.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/**
* Implementation of classes defined in KX_SG_NodeRelationships.h

View File

@@ -30,9 +30,12 @@
*/
#include "KX_ScalarInterpolator.h"
#include "KX_IScalarInterpolator.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void KX_ScalarInterpolator::Execute(float currentTime) const {
*m_target = m_ipo->GetValue(currentTime);
}

View File

@@ -30,11 +30,13 @@
*/
#include "KX_ScalingInterpolator.h"
#include "MT_Vector3.h"
#include "KX_IScalarInterpolator.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void KX_ScalingInterpolator::Execute(float currentTime) const {
m_target.setValue(m_ipos[0]->GetValue(currentTime),
m_ipos[1]->GetValue(currentTime),

View File

@@ -31,6 +31,10 @@
* Ketsji scene. Holds references to all scene data.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef WIN32
#pragma warning (disable : 4786)
#endif //WIN32

View File

@@ -39,6 +39,10 @@
#include "KX_Camera.h"
#include "KX_KetsjiEngine.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Native functions */
/* ------------------------------------------------------------------------- */

View File

@@ -40,6 +40,10 @@
#include "SND_Scene.h" // needed for replication
#include <iostream>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Native functions */
/* ------------------------------------------------------------------------- */

View File

@@ -6,7 +6,9 @@
#include "KX_GameObject.h"
#include "KX_MotionState.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
void KX_SumoPhysicsController::applyImpulse(const MT_Point3& attach, const MT_Vector3& impulse)
{

View File

@@ -32,6 +32,9 @@
#include "KX_TimeCategoryLogger.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_TimeCategoryLogger::KX_TimeCategoryLogger(unsigned int maxNumMeasurements)
: m_maxNumMeasurements(maxNumMeasurements)

View File

@@ -32,7 +32,9 @@
#include "KX_TimeLogger.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_TimeLogger::KX_TimeLogger(unsigned int maxNumMeasurements)
: m_maxNumMeasurements(maxNumMeasurements), m_logging(false), m_logStart(0)

View File

@@ -30,11 +30,14 @@
*/
#include "KX_TouchEventManager.h"
#include "SCA_ISensor.h"
#include "KX_TouchSensor.h"
#include "KX_GameObject.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef PHYSICS_NOT_YET
KX_TouchEventManager::KX_TouchEventManager(class SCA_LogicManager* logicmgr,

View File

@@ -39,6 +39,10 @@
#include "KX_TouchEventManager.h"
#include <iostream>
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef PHYSICS_NOT_YET
/* ------------------------------------------------------------------------- */

View File

@@ -45,6 +45,9 @@
#include <iostream>
#include "KX_GameObject.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
/* ------------------------------------------------------------------------- */
/* Native functions */

View File

@@ -30,9 +30,11 @@
*/
#include "KX_VertexProxy.h"
#include "RAS_TexVert.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
PyTypeObject KX_VertexProxy::Type = {
PyObject_HEAD_INIT(&PyType_Type)

View File

@@ -34,6 +34,10 @@
#include "KX_VisibilityActuator.h"
#include "KX_GameObject.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_VisibilityActuator::KX_VisibilityActuator(
SCA_IObject* gameobj,
bool visible,

View File

@@ -31,6 +31,9 @@
#include "KX_WorldInfo.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
KX_WorldInfo::~KX_WorldInfo()
{

View File

@@ -30,10 +30,13 @@
*/
#include "KX_WorldIpoController.h"
#include "KX_ScalarInterpolator.h"
#include "KX_WorldInfo.h"
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
bool KX_WorldIpoController::Update(double currentTime)
{
if (m_modified)