Home | Trees | Indices | Help |
|
---|
|
PyObjectPlus --+ | CValue --+ | SCA_ILogicBrick --+ | SCA_ISensor
Base class for all sensor logic bricks.
Instance Methods | |||
|
|||
bool |
|
||
Deprecated | |||
---|---|---|---|
|
|||
|
|||
|
|||
|
|||
integer |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
boolean |
|
||
|
|||
integer |
|
||
string |
|
||
KX_GameObject |
|
||
|
Instance Variables | |
int |
executePriority This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). (Inherited from GameTypes.SCA_ILogicBrick) |
int |
frequency The frequency for pulse mode sensors. |
bool |
invalid Test if the object has been freed by the game engine and is no longer valid. (Inherited from GameTypes.PyObjectPlus) |
boolean |
invert Flag to set if this sensor activates on positive or negative events. |
boolean |
level Option whether to detect level or edge transition when entering a state. |
string |
name The name of this CValue derived object (read-only). (Inherited from GameTypes.SCA_ILogicBrick) |
KX_GameObject or None in exceptional cases. |
owner The game object this logic brick is attached to (read-only). (Inherited from GameTypes.SCA_ILogicBrick) |
boolean |
positive True if this sensor brick is in a positive state. |
boolean |
tap When enabled only sensors that are just activated will send a positive event, after this they will be detected as negative by the controllers. |
boolean |
triggered True if this sensor brick is in a positive state. |
boolean |
useNegPulseMode Flag to turn negative pulse mode on and off. |
boolean |
usePosPulseMode Flag to turn positive pulse mode on and off. |
Method Details |
Reset sensor internal state, effect depends on the type of sensor and settings. The sensor is put in its initial state as if it was just activated. |
True if this sensor brick is in a positive state. Deprecated: use positive |
True if this sensor brick has triggered the current controller. Deprecated: use triggered |
True if the sensor is in positive pulse mode. Deprecated: use usePosPulseMode |
Sets positive pulse mode.
Deprecated: use usePosPulseMode |
The frequency for pulse mode sensors.
Deprecated: use frequency |
Sets the frequency for pulse mode sensors.
Deprecated: use frequency |
True if the sensor is in negative pulse mode. Deprecated: use useNegPulseMode |
Sets negative pulse mode.
Deprecated: use useNegPulseMode |
True if this sensor activates on negative events. Deprecated: use invert |
Sets if this sensor activates on positive or negative events.
Deprecated: use invert |
Returns whether this sensor is a level detector or a edge detector. It makes a difference only in case of logic state transition (state actuator). A level detector will immediately generate a pulse, negative or positive depending on the sensor condition, as soon as the state is activated. A edge detector will wait for a state change before generating a pulse.
Deprecated: use level |
Set whether to detect level or edge transition when entering a state.
Deprecated: use level |
Instance Variable Details |
levelOption whether to detect level or edge transition when entering a state. It makes a difference only in case of logic state transition (state actuator). A level detector will immediately generate a pulse, negative or positive depending on the sensor condition, as soon as the state is activated. A edge detector will wait for a state change before generating a pulse. note: mutually exclusive with tap, enabling will disable tap.
|
positiveTrue if this sensor brick is in a positive state. (read-only)
|
tapWhen enabled only sensors that are just activated will send a positive event, after this they will be detected as negative by the controllers. This will make a key thats held act as if its only tapped for an instant. note: mutually exclusive with level, enabling will disable level.
|
triggeredTrue if this sensor brick is in a positive state. (read-only)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Mon Aug 31 23:12:32 2009 | http://epydoc.sourceforge.net |