In file wumpus_world.hh:

class Wumpus_World

This class contains all functions needed for the Wumpus World Environment

Public Methods

void put(const unsigned int X, const unsigned int Y, const Object OBJECT)
This public member function allows you to place an Object in the Wumpus World
void show()
This public member function shows the Wumpus World by printing it to standard output
void evaluate(Abstract_Agent &a, const unsigned int MAX_STEPS)
This public member function evaluates an Agent
Wumpus_World(const unsigned int MAX_X, const unsigned int MAX_Y)
This is the constructor for the Wumpus World
~Wumpus_World()
The destructor for the Wumpus World

Documentation

This class contains all functions needed for the Wumpus World Environment.

void put(const unsigned int X, const unsigned int Y, const Object OBJECT)
This public member function allows you to place an Object in the Wumpus World.

Parameters:
X - the x-coordinate of the object to be placed
Y - the y-coordinate of the object to be placed
OBJECT - the object to be placed at location (X,Y)

void show()
This public member function shows the Wumpus World by printing it to standard output. The Agent is indicated by the symbol 'A'.

void evaluate(Abstract_Agent &a, const unsigned int MAX_STEPS)
This public member function evaluates an Agent. The type of the Agent should be a child class of the Abstract_Agent class.

Parameters:
Agent - the agent that is to be evaluated.

Wumpus_World(const unsigned int MAX_X, const unsigned int MAX_Y)
This is the constructor for the Wumpus World. It creates an empty Wumpus World of X_SIZE by Y_SIZE squares. The entrance of the cave is at location (1,1). The coordinates of the Wumpus World range from (1,1) to (MAX_X,MAX_Y)

Parameters:
MAX_X - the maximum x-coordinate.
MAY_Y - the maximum y coordinate

~Wumpus_World()
The destructor for the Wumpus World. It destroys the Wumpus World.


This class has no child classes.
Author:
J. Eggermont
Version:
1.0

alphabetic index hierarchy of classes


voor vragen en opmerkingen kun je een e-mailtje sturen naar: jeggermo@wi.leidenuniv.nl

generated by doc++