• Main Page
  • Modules
  • Classes
  • Files
  • File List

D:/Projekt/ECF_trunk/examples/GPArtificialAnt/TurnRight.h

00001 #include "AntEvalOp.h"
00002 
00003 
00008 class TurnRight : public Tree::Primitives::Primitive
00009 {
00010 public:
00011     TurnRight()
00012     {
00013         nArguments_ = 0;
00014         name_ = "right";
00015     }
00016 
00017     void execute(void* evalOp, Tree::Tree& tree)
00018     {
00019         // get pointer to simulator from the context
00020         AntEvalOp* ant = (AntEvalOp*) state_->getContext()->environment;
00021         // turn us right
00022         ant->turnRight();
00023     }
00024 
00025     ~TurnRight()
00026     {   }
00027 };

Generated on Tue Nov 4 2014 13:04:32 for ECF by  doxygen 1.7.1