/***************************************************************************
propertysensor.h - description
-------------------
begin : Wed Dec 20 2000
copyright : (C) 2000 by Jan Walter
email : jan@blender.nl
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef PROPERTYSENSOR_H
#define PROPERTYSENSOR_H
#include <sensor.h>
/**A PropertySensor is a special kind of a general sensor.
*@author Jan Walter
*/
class Sensor.html">PropertySensor : public Sensor {
public:
PropertySensor();
~PropertySensor();
/** Returns the type of check this sensor performs. */
PyObject* getType();
/** Set the type of check to perform. Valid arguments are KX_PROPSENSOR_EQUAL, KX_PROPSENSOR_NOTEQUAL, KX_PROPSENSOR_INTERVAL, KX_PROPSENSOR_CHANGED, or KX_PROPSENSOR_EXPRESSION. */
PyObject* setType(int type);
/** Return the property with which the sensor operates. */
PyObject* getProperty(char* name);
/** Sets the property with which to operate. If there is no property of this name, the call is ignored. */
PyObject* setProperty(char* name);
/** Returns the value with which the sensor operates. */
PyObject* getValue();
/** Set the value with which the sensor operates. If the value is not compatible with the type of the property, the subsequent action is ignored. */
PyObject* setValue(char* value);
};
#endif
Documentation generated by jan@nvidea on Thu Dec 21 14:04:43 CET 2000