示例#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
inline bool Location::ValidPosition(uint pos) {
	uint x, y;
	ToCoords(pos, x, y);
	return ValidLocation(x, y);
}