Skip to content

Commit

Permalink
splitting up files for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
rtv committed Jan 20, 2011
1 parent c11fc4c commit 8b89c89
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions controller.h
@@ -0,0 +1,19 @@

#include "antix.h"

// this is the robot controller code
class Forager : public Antix::Robot
{
public:
double lastx, lasty;

Forager( Antix::Home* h )
: Robot( h, Pose::Random() ),
lastx(home->x), // initial search location is close to my home
lasty(home->y)
{}

// must implement this method. Examine the pixels vector and set the
// speed sensibly.
virtual void Controller();
};

0 comments on commit 8b89c89

Please sign in to comment.