location.h
/*
* Nathan Eloe 4/24/2013
* location.h
* Declaration of a struct to hold a location
*/
#ifndef LOCATION_H
#define LOCATION_H
#include <iostream>
using namespace std;
struct Location
{
int m_x, m_y;
Location(const int x=0, const int y=0): m_x(x), m_y(y) {}
};
const Location ORIGIN = Location(0,0);
ostream& operator << (ostream & o, const Location & l);
Location randLocation(const int maxX, const int maxY);
#endif