GP function, checks if the food is ahead. More...
#include <IfFoodAhead.h>
Public Member Functions | |
void | execute (void *evalOp, Tree::Tree &tree) |
Execute the primitive. |
GP function, checks if the food is ahead.
If the food is ahead, execute the first subtree, else the second one
Definition at line 10 of file IfFoodAhead.h.
void IfFoodAhead::execute | ( | void * | result, | |
Tree::Tree & | tree | |||
) | [inline, virtual] |
Execute the primitive.
Function primitives gather arguments and return a value; terminal primitives return current value.
Implements Tree::Primitives::Primitive.
Definition at line 19 of file IfFoodAhead.h.