Tuesday, December 8, 2009

Finding a path algorithm - Creature Class Declaration

/*
Title: Creature Class Declaration
Author: Daniel J. Tanner
Class: CS 2420 - Data Abstraction & Problem Solving w/ C++
Date: October 17th, 2005 (latest update)
*/

#include
#include
#include
#include "TannMaze.h"
using namespace std;

//Class declaration
class TannCreature
{
private:
Coord position_;
TannMaze *maze_;
bool goNorth();
bool goSouth();
bool goWest();
bool goEast();

public:
TannCreature();
TannCreature(TannMaze &maze);
void setMaze(TannMaze &maze);
bool findExit();
};

No comments:

Post a Comment