| Home | Trees | Indices | Help |
|
|---|
|
|
PyObjectPlus --+
|
CValue --+
|
SCA_ILogicBrick --+
|
SCA_IActuator --+
|
SCA_RandomActuator
Random Actuator
Properties:
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| bool |
|
||
| Deprecated | |||
|---|---|---|---|
|
|||
| integer |
|
||
| float |
|
||
| float |
|
||
| distribution type |
|
||
|
|||
| string |
|
||
| integer |
|
||
| string |
|
||
| KX_GameObject |
|
||
|
|||
| Instance Variables | |
| 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 |
| int |
executePriority This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). (Inherited from GameTypes.SCA_ILogicBrick) |
| bool |
invalid Test if the object has been freed by the game engine and is no longer valid. (Inherited from GameTypes.PyObjectPlus) |
| 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) |
| 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. |
| Method Details |
Sets this generator to produce a constant boolean value.
|
Sets this generator to produce a uniform boolean distribution. The generator will generate True or False with 50% chance. |
Sets this generator to produce a Bernouilli distribution.
|
Sets this generator to always produce the given value.
|
Sets this generator to produce a random value between the given lower and upper bounds (inclusive).
|
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.
|
Always generate the given value.
|
Generates a random float between lower_bound and upper_bound with a uniform distribution.
|
Generates a random float from the given normal distribution.
|
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. |
Returns the initial seed of the generator.
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. |
Returns the type of random distribution.
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. |
Returns the name of the property to set.
Deprecated: Use the propName attribute instead. |
| Instance Variable Details |
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.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0 on Mon Aug 31 23:12:32 2009 | http://epydoc.sourceforge.net |