예제 #1
0
파일: board.cpp 프로젝트: theolol/MiMHex
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();
}
예제 #2
0
파일: board.cpp 프로젝트: lukaszlew/MiMHex
inline bool Location::ValidPosition(uint pos) {
	uint x, y;
	ToCoords(pos, x, y);
	return ValidLocation(x, y);
}