location.cpp
/*
* Nathan Eloe 4/24/2013
* location.cpp
* Implementation of a location structy thing
*/
#include "location.h"
#include <cstdlib>
ostream& operator << (ostream & o, const Location & l)
{
o << "(" << l.m_x << "," << l.m_y << ")";
return o;
}
Location randLocation(const int maxX, const int maxY)
{
Location l(rand()%maxX, rand()%maxY);
return l;
}