Trees | Indices | Help |
|
---|
|
PyObjectPlus --+ | CValue --+ | SCA_ILogicBrick --+ | SCA_IActuator --+ | SCA_RandomActuator
Random Actuator
Properties:
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Deprecated | |||
---|---|---|---|
|
|||
integer |
|
||
float |
|
||
float |
|
||
distribution type |
|
||
|
|||
string |
|
||
Inherited from SCA_ILogicBrick | |||
integer |
|
||
KX_GameObject |
|
||
|
|||
Inherited from CValue | |||
string |
|
||
Inherited from PyObjectPlus | |||
bool |
|
|
|||
integer, read-only |
distribution distribution type: KX_RANDOMACT_BOOL_CONST, KX_RANDOMACT_BOOL_UNIFORM, KX_RANDOMACT_BOOL_BERNOUILLI, KX_RANDOMACT_INT_CONST, KX_RANDOMACT_INT_UNIFORM, KX_RANDOMACT_INT_POISSON, KX_RANDOMACT_FLOAT_CONST, KX_RANDOMACT_FLOAT_UNIFORM, KX_RANDOMACT_FLOAT_NORMAL, KX_RANDOMACT_FLOAT_NEGATIVE_EXPONENTIAL |
||
float, read-only |
para1 the first parameter of the active distribution. |
||
float, read-only |
para2 the second parameter of the active distribution. |
||
string |
propName the name of the property to set with the random value. |
||
integer |
seed Seed of the random number generator. |
||
Inherited from SCA_ILogicBrick | |||
---|---|---|---|
int |
executePriority This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). |
||
string |
name The name of this CValue derived object (read-only). |
||
KX_GameObject or None in exceptional cases. |
owner The game object this logic brick is attached to (read-only). |
||
Inherited from PyObjectPlus | |||
bool |
invalid Test if the object has been freed by the game engine and is no longer valid. |
|
|
Sets this generator to produce a uniform boolean distribution. The generator will generate True or False with 50% chance. |
|
|
|
Generate a Poisson-distributed number. This performs a series of Bernouilli tests with parameter value. It returns the number of tries needed to achieve succes. |
|
|
|
Generate negative-exponentially distributed numbers. The half-life 'time' is characterized by half_life. |
Sets the seed of the random number generator. Equal seeds produce equal series. If the seed is 0, the generator will produce the same value on every call.Deprecated: Use the seed attribute instead. |
Deprecated: Use the seed attribute instead. |
Returns the first parameter of the active distribution. Refer to the documentation of the generator types for the meaning of this value.
Deprecated: Use the para1 attribute instead. |
Returns the second parameter of the active distribution. Refer to the documentation of the generator types for the meaning of this value.
Deprecated: Use the para2 attribute instead. |
Deprecated: Use the distribution attribute instead. |
Set the property to which the random value is assigned. If the generator and property types do not match, the assignment is ignored.
Deprecated: Use the propName attribute instead. |
Deprecated: Use the propName attribute instead. |
|
para1the first parameter of the active distribution. Refer to the documentation of the generator types for the meaning of this value.
|
para2the second parameter of the active distribution. Refer to the documentation of the generator types for the meaning of this value.
|
propNamethe name of the property to set with the random value. If the generator and property types do not match, the assignment is ignored.
|
seedSeed of the random number generator. Equal seeds produce equal series. If the seed is 0, the generator will produce the same value on every call.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 26 12:07:42 2009 | http://epydoc.sourceforge.net |