Class TBoidEngine (unit uBoidEngine)

Inherits from

TMovableEngine

Constructors


constructor Create(iBoidCount : integer; OutputCanvas : TCanvas);

******************************************************************************


Functions

procedure AdjustMovableCount(iMovableCount : integer);

******************************************************************************

procedure CopySettingsToAllBoids;

******************************************************************************

procedure CopySettingsToBoid(Boid : TBoid);

procedure RunStep;

******************************************************************************


Properties

Events

Variables

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;



Constructors


constructor Create(iBoidCount : integer; OutputCanvas : TCanvas);

******************************************************************************


Functions


procedure AdjustMovableCount(iMovableCount : integer);

******************************************************************************


procedure CopySettingsToAllBoids;

******************************************************************************


procedure CopySettingsToBoid(Boid : TBoid);

procedure RunStep;

******************************************************************************


Properties


Events


Variables


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;