sdleiF | ||
int creature | selected creatureDeprecated. Pass creature object to functions needing it, instead of the old "first select, then call" approach. | |
int group | selected groupIndex of the currently selected group (Population). Deprecated. Pass creature object to functions needing it, instead of the old "first select, then call" approach. | |
object iterator RO | iterator | |
int size RO | Number of groups | |
snoitcnuF | ||
function addGroup(string name)returns Population | Adds a new population. | |
function clear()doesn't return a value | Removes all populations except the first one. | |
function clearGroup(int index)doesn't return a value | Deprecated. Use Populations[pop_index].clear() instead of Populations.clearGroup(pop_index); | |
function creatBBCollisions(int mask)returns int | Checks approximate collisions for the selected creature. Returns the collision mask calculated as ( creature.selfmask & other_creatures.othermask ). Passing non-zero argument is equivalent to setting a temporary selfmask for the current creature. Deprecated. Use Creature.boundingBoxCollisions() | |
function createFromGenotype()returns Creature | Uses the selected Genotype object. | |
function createFromString(string genotype)returns Creature | Uses the supplied string argument. | |
function deleteGroup(int index)doesn't return a value | Removes a population. | |
function deleteSelected()doesn't return a value | Applies to the selected Creature. | |
function findCreatureAt(Vector point, Vector vector)returns Creature | Find creatureReturns the first Creature object colliding with the line defined by the supplied starting point and the vector. For the purpose of this function, "collision" means "passing closer than 1.0 from any of the Creature's Parts". Note that a screen point corresponds to a 3D line going through the screen surface; if you want to identify the object under the mouse cursor, you can use this function because finding an object at a given screen coordinates can be a special case of finding the line-with-object collision. | |
function get(int index)returns Population | ||
function killSelected()doesn't return a value | Applies to the selected Creature. |
Global context |