Copyright VirtualSim 2004-2020 - All rights reserved
Using Plans
Plans are based on routines which are listed in the entity class pane, for each entity class type.
A Plan is unique to an entity and can be defined at design or runtime. It is based on predefined routines which belong to the entity class. Thus, each class of entity can have different routines. The inheritance tree allowing basic routines to be shared by all while children classes will either provide specific ones or specialize inherited ones.
A plan must be seen as a string of localized (or not) routines. When the routine is localized, it is attached to a Plan-Point and the coordinates matters.
vsTASKER provides some built-in routines that belongs to each Template. They can be imported/exported from/to the Data/Shared directory.
The simplest routine is the moveTo that directs the entity towards the plan-point and stops it when reached.
When a routine returns Done, the next plan-point is activated (and the associated routine is executed) until all plan is processed.