Blender V2.61 - r43446
Classes | Defines | Typedefs | Enumerations

DNA_boid_types.h File Reference

#include "DNA_listBase.h"

Go to the source code of this file.

Classes

struct  BoidRule
struct  BoidRuleGoalAvoid
struct  BoidRuleAvoidCollision
struct  BoidRuleFollowLeader
struct  BoidRuleAverageSpeed
struct  BoidRuleFight
struct  BoidData
struct  BoidState
struct  BoidSettings

Defines

#define BOIDRULE_CURRENT   1
#define BOIDRULE_IN_AIR   4
#define BOIDRULE_ON_LAND   8
#define BRULE_GOAL_AVOID_PREDICT   1
#define BRULE_GOAL_AVOID_ARRIVE   2
#define BRULE_GOAL_AVOID_SIGNAL   4
#define BRULE_ACOLL_WITH_BOIDS   1
#define BRULE_ACOLL_WITH_DEFLECTORS   2
#define BRULE_LEADER_IN_LINE   1
#define BOIDSTATE_CURRENT   1
#define BOID_ALLOW_FLIGHT   1
#define BOID_ALLOW_LAND   2
#define BOID_ALLOW_CLIMB   4

Typedefs

typedef enum BoidRuleType BoidRuleType
typedef struct BoidRule BoidRule
typedef struct BoidRuleGoalAvoid BoidRuleGoalAvoid
typedef struct
BoidRuleAvoidCollision 
BoidRuleAvoidCollision
typedef struct BoidRuleFollowLeader BoidRuleFollowLeader
typedef struct BoidRuleAverageSpeed BoidRuleAverageSpeed
typedef struct BoidRuleFight BoidRuleFight
typedef enum BoidMode BoidMode
typedef struct BoidData BoidData
typedef enum BoidRulesetType BoidRulesetType
typedef struct BoidState BoidState
typedef struct BoidSettings BoidSettings

Enumerations

enum  BoidRuleType {
  eBoidRuleType_None = 0, eBoidRuleType_Goal, eBoidRuleType_Avoid, eBoidRuleType_AvoidCollision,
  eBoidRuleType_Separate, eBoidRuleType_Flock, eBoidRuleType_FollowLeader, eBoidRuleType_AverageSpeed,
  eBoidRuleType_Fight, NUM_BOID_RULE_TYPES
}
enum  BoidMode {
  eBoidMode_InAir = 0, eBoidMode_OnLand, eBoidMode_Climbing, eBoidMode_Falling,
  eBoidMode_Liftoff, NUM_BOID_MODES
}
enum  BoidRulesetType { eBoidRulesetType_Fuzzy = 0, eBoidRulesetType_Random, eBoidRulesetType_Average, NUM_BOID_RULESET_TYPES }

Detailed Description

Definition in file DNA_boid_types.h.


Define Documentation

#define BOID_ALLOW_CLIMB   4

Definition at line 216 of file DNA_boid_types.h.

Referenced by rna_def_boid_settings(), and rule_goal_avoid().

#define BOID_ALLOW_FLIGHT   1
#define BOID_ALLOW_LAND   2

Definition at line 215 of file DNA_boid_types.h.

Referenced by boid_body(), collision_check(), and rna_def_boid_settings().

#define BOIDRULE_CURRENT   1
#define BOIDRULE_IN_AIR   4

Definition at line 57 of file DNA_boid_types.h.

Referenced by boid_new_rule(), boid_rule_applies(), and rna_def_boidrule().

#define BOIDRULE_ON_LAND   8

Definition at line 58 of file DNA_boid_types.h.

Referenced by boid_new_rule(), boid_rule_applies(), and rna_def_boidrule().

#define BOIDSTATE_CURRENT   1
#define BRULE_ACOLL_WITH_BOIDS   1

Definition at line 76 of file DNA_boid_types.h.

Referenced by rna_def_boidrule_avoid_collision(), and rule_avoid_collision().

#define BRULE_ACOLL_WITH_DEFLECTORS   2

Definition at line 77 of file DNA_boid_types.h.

Referenced by rna_def_boidrule_avoid_collision(), and rule_avoid_collision().

#define BRULE_GOAL_AVOID_ARRIVE   2

Definition at line 65 of file DNA_boid_types.h.

#define BRULE_GOAL_AVOID_PREDICT   1

Definition at line 64 of file DNA_boid_types.h.

Referenced by rna_def_boidrule_avoid(), rna_def_boidrule_goal(), and rule_goal_avoid().

#define BRULE_GOAL_AVOID_SIGNAL   4

Definition at line 66 of file DNA_boid_types.h.

#define BRULE_LEADER_IN_LINE   1

Definition at line 83 of file DNA_boid_types.h.

Referenced by rna_def_boidrule_follow_leader(), and rule_follow_leader().


Typedef Documentation

typedef struct BoidData BoidData
typedef enum BoidMode BoidMode
typedef struct BoidRule BoidRule
typedef struct BoidRuleFight BoidRuleFight
typedef enum BoidRuleType BoidRuleType
typedef struct BoidSettings BoidSettings
typedef struct BoidState BoidState

Enumeration Type Documentation

enum BoidMode
Enumerator:
eBoidMode_InAir 
eBoidMode_OnLand 
eBoidMode_Climbing 
eBoidMode_Falling 
eBoidMode_Liftoff 
NUM_BOID_MODES 

Definition at line 100 of file DNA_boid_types.h.

Enumerator:
eBoidRulesetType_Fuzzy 
eBoidRulesetType_Random 
eBoidRulesetType_Average 
NUM_BOID_RULESET_TYPES 

Definition at line 144 of file DNA_boid_types.h.

Enumerator:
eBoidRuleType_None 
eBoidRuleType_Goal 
eBoidRuleType_Avoid 
eBoidRuleType_AvoidCollision 
eBoidRuleType_Separate 
eBoidRuleType_Flock 
eBoidRuleType_FollowLeader 
eBoidRuleType_AverageSpeed 
eBoidRuleType_Fight 
NUM_BOID_RULE_TYPES 

Definition at line 38 of file DNA_boid_types.h.