Esempio n. 1
0
inline std::string Location::ToCoords() const {
	std::stringstream coords;
	uint x,y;
	ToCoords(_pos, x, y);
	coords << static_cast<char>(x + 'a' - 1);
	coords << y;
	return coords.str();
}
Esempio n. 2
0
inline bool Location::ValidPosition(uint pos) {
	uint x, y;
	ToCoords(pos, x, y);
	return ValidLocation(x, y);
}