Home | Trees | Index | Help |
|
---|
Module SCA_RandomActuator :: Class SCA_RandomActuator |
|
SCA_ILogicBrick
--+ |SCA_IActuator
--+ | SCA_RandomActuator
Method Summary | |
---|---|
distribution type |
Returns the type of random distribution. |
float |
Returns the first parameter of the active distribution. |
float |
Returns the second parameter of the active distribution. |
string |
Returns the name of the property to set. |
integer |
Returns the initial seed of the generator. |
Sets this generator to produce a Bernouilli distribution. | |
Sets this generator to produce a constant boolean value. | |
Sets this generator to produce a uniform boolean distribution. | |
Always generate the given value. | |
Generate negative-exponentially distributed numbers. | |
Generates a random float from the given normal distribution. | |
Generates a random float between lower_bound and upper_bound with a uniform distribution. | |
Sets this generator to always produce the given value. | |
Generate a Poisson-distributed number. | |
Sets this generator to produce a random value between the given lower and upper bounds (inclusive). | |
Set the property to which the random value is assigned. | |
Sets the seed of the random number generator. | |
Inherited from SCA_ILogicBrick | |
integer |
Gets the execution priority of this logic brick. |
KX_GameObject
|
Gets the game object associated with this logic brick. |
Sets the priority of this logic brick. |
Method Details |
---|
getDistribution()Returns the type of random distribution.
|
getPara1()Returns the first parameter of the active distribution. Refer to the documentation of the generator types for the meaning of this value.
|
getPara2()Returns the second parameter of the active distribution. Refer to the documentation of the generator types for the meaning of this value.
|
getProperty()Returns the name of the property to set.
|
getSeed()Returns the initial seed of the generator.
|
setBoolBernouilli(value)Sets this generator to produce a Bernouilli distribution.
|
setBoolConst(value)Sets this generator to produce a constant boolean value.
|
setBoolUniform()Sets this generator to produce a uniform boolean distribution. The generator will generate True or False with 50% chance. |
setFloatConst(value)Always generate the given value.
|
setFloatNegativeExponential(half_life)Generate negative-exponentially distributed numbers. The half-life 'time' is characterized by half_life.
|
setFloatNormal(mean, standard_deviation)Generates a random float from the given normal distribution.
|
setFloatUniform(lower_bound, upper_bound)Generates a random float between lower_bound and upper_bound with a uniform distribution.
|
setIntConst(value)Sets this generator to always produce the given value.
|
setIntPoisson(value)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.
|
setIntUniform(lower_bound, upper_bound)Sets this generator to produce a random value between the given lower and upper bounds (inclusive).
|
setProperty(property)Set the property to which the random value is assigned. If the generator and property types do not match, the assignment is ignored.
|
setSeed(seed)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.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Feb 1 00:12:33 2007 | http://epydoc.sf.net |