Class TBoidEngine (unit uBoidEngine) |
Inherits from
TMovableEngine
constructor Create(iBoidCount : integer; OutputCanvas : TCanvas);
- ******************************************************************************
procedure AdjustMovableCount(iMovableCount : integer);
******************************************************************************
procedure CopySettingsToAllBoids;
******************************************************************************
procedure CopySettingsToBoid(Boid : TBoid);
procedure RunStep;******************************************************************************
bBoidAvoidance : boolean;
bExecuteAlignment : boolean;
bExecuteCohesion : boolean;
bExecuteObstacles : boolean;
bExecuteSeparation : boolean;
bObstacleAvoidance : boolean;
bShowAlignment : boolean;
bShowCohesion : boolean;
LineLength : single;
MaxTurnSpeed : single;
OptimalDistance : single;
ReallyClose : single;
StayInCenter : single;
TooClose : single;
constructor Create(iBoidCount : integer; OutputCanvas : TCanvas);
******************************************************************************
procedure AdjustMovableCount(iMovableCount : integer);
******************************************************************************
procedure CopySettingsToAllBoids;
******************************************************************************
procedure CopySettingsToBoid(Boid : TBoid);
procedure RunStep;
******************************************************************************
bBoidAvoidance : boolean;
bExecuteAlignment : boolean;
bExecuteCohesion : boolean;
bExecuteObstacles : boolean;
bExecuteSeparation : boolean;
bObstacleAvoidance : boolean;
bShowAlignment : boolean;
bShowCohesion : boolean;
LineLength : single;
MaxTurnSpeed : single;
OptimalDistance : single;
ReallyClose : single;
StayInCenter : single;
TooClose : single;