Blender V2.61 - r43446
Functions | Variables

rna_boid.c File Reference

#include <float.h>
#include <limits.h>
#include <stdlib.h>
#include "RNA_define.h"
#include "rna_internal.h"
#include "DNA_scene_types.h"
#include "DNA_boid_types.h"
#include "DNA_object_types.h"
#include "DNA_particle_types.h"
#include "WM_api.h"
#include "WM_types.h"

Go to the source code of this file.

Functions

static void rna_def_boidrule_goal (BlenderRNA *brna)
static void rna_def_boidrule_avoid (BlenderRNA *brna)
static void rna_def_boidrule_avoid_collision (BlenderRNA *brna)
static void rna_def_boidrule_follow_leader (BlenderRNA *brna)
static void rna_def_boidrule_average_speed (BlenderRNA *brna)
static void rna_def_boidrule_fight (BlenderRNA *brna)
static void rna_def_boidrule (BlenderRNA *brna)
static void rna_def_boidstate (BlenderRNA *brna)
static void rna_def_boid_settings (BlenderRNA *brna)
void RNA_def_boid (BlenderRNA *brna)

Variables

EnumPropertyItem boidrule_type_items []
EnumPropertyItem boidruleset_type_items []

Detailed Description

Definition in file rna_boid.c.


Function Documentation

void RNA_def_boid ( BlenderRNA brna)

Definition at line 638 of file rna_boid.c.

References rna_def_boid_settings(), rna_def_boidrule(), and rna_def_boidstate().

static void rna_def_boid_settings ( BlenderRNA brna) [static]
static void rna_def_boidrule ( BlenderRNA brna) [static]
static void rna_def_boidrule_average_speed ( BlenderRNA brna) [static]
static void rna_def_boidrule_avoid ( BlenderRNA brna) [static]
static void rna_def_boidrule_avoid_collision ( BlenderRNA brna) [static]
static void rna_def_boidrule_fight ( BlenderRNA brna) [static]
static void rna_def_boidrule_follow_leader ( BlenderRNA brna) [static]
static void rna_def_boidrule_goal ( BlenderRNA brna) [static]
static void rna_def_boidstate ( BlenderRNA brna) [static]

Variable Documentation

Initial value:
{
    {eBoidRuleType_Goal, "GOAL", 0, "Goal", "Go to assigned object or loudest assigned signal source"},
    {eBoidRuleType_Avoid, "AVOID", 0, "Avoid", "Get away from assigned object or loudest assigned signal source"},
    {eBoidRuleType_AvoidCollision, "AVOID_COLLISION", 0, "Avoid Collision", "Manoeuvre to avoid collisions with other boids and deflector objects in near future"},
    {eBoidRuleType_Separate, "SEPARATE", 0, "Separate", "Keep from going through other boids"},
    {eBoidRuleType_Flock, "FLOCK", 0, "Flock", "Move to center of neighbors and match their velocity"},
    {eBoidRuleType_FollowLeader, "FOLLOW_LEADER", 0, "Follow Leader", "Follow a boid or assigned object"},
    {eBoidRuleType_AverageSpeed, "AVERAGE_SPEED", 0, "Average Speed", "Maintain speed, flight level or wander"},
    {eBoidRuleType_Fight, "FIGHT", 0, "Fight", "Go to closest enemy and attack when in range"},
    
    
    
    
    {0, NULL, 0, NULL, NULL}}

Definition at line 49 of file rna_boid.c.

Referenced by boid_new_rule(), and BOID_OT_rule_add().

Initial value:
{
    {eBoidRulesetType_Fuzzy, "FUZZY", 0, "Fuzzy", "Rules are gone through top to bottom. Only the first rule that effect above fuzziness threshold is evaluated"},
    {eBoidRulesetType_Random, "RANDOM", 0, "Random", "A random rule is selected for each boid"},
    {eBoidRulesetType_Average, "AVERAGE", 0, "Average", "All rules are averaged"},
    {0, NULL, 0, NULL, NULL}}

Definition at line 64 of file rna_boid.c.