Note on breeds
Breeds are declared in the procedures window with the breeds[(insert breeds here)] command. A few functions are created for each breed. We'll use the example of breed frogs.
create-frogs number : Creates number frogs.
create-frogs-and-do number ilist : Creates number frogs and tells them to do ilist .
ask-frogs ilist : Asks all frogs to do ilist . Note: This is an observer-only command. To do this with turtles, use if breed = frogs [ilist ].
count-frogs: Returns the number of frogs.
one-of-frogs: Returns the ID of one random frog.
list-of-frogs: Returns a dlist with the ID numbers of all the frogs.
count-frogs-here: See count-turtles-here,
referring only to frogs.
one-of-frogs-here: See one-of-turtles-here,
referring only to frogs.
list-frogs-here: See list-of-turtles-here,
referring only to frogs.
count-frogs-at: See count-turtles-at,
referring only to frogs.
one-of-frogs-at: See one-of-turtles-at,
referring only to frogs.
list-frogs-at: See list-of-turtles-at,
referring only to frogs.
count-frogs-towards: See count-turtles-towards,
referring only to frogs.
one-of-frogs-towards: See one-of-turtles-towards,
referring only to frogs.
list-frogs-towards: See list-of-turtles-towards,
referring only to frogs.
|