Attaching Skills
Skills add a reusable set of variables and actions to a species. Attach one or more skills with the skills facet in the species declaration. GAMA includes built-in skills, and extensions can provide additional ones; see the built-in skills reference and the documentation for the relevant extension.
Attach a skill​
List the skill names in square brackets. For example, this species declares the built-in moving skill:
species my_species skills: [moving] {
}
For example, the moving skill provides movement variables and actions:
species walkers skills: [moving] {
reflex move_around {
do wander amplitude: 90.0;
}
}
The moving skill defines location, speed, real_speed, heading, current_path and current_edge. Its actions are move, wander, goto and follow. For 3D movement, see the separate moving3D skill.
The illustration shows agents using movement behavior and the goto action to move toward a target.
