Added missing files from previous CL.

This commit is contained in:
Justin Marshall
2020-07-05 20:26:23 -07:00
parent 318cfe0cfc
commit f1e75e4a63
5 changed files with 28 additions and 0 deletions
+9
View File
@@ -1030,6 +1030,15 @@ bool CellClass::ScreenCoordsToIsoTile(int x, int y, int &tileX, int &tileY) {
return true;
}
void CellClass::ConvertIsoCoordsToScreen(int& x, int& y) {
int tileX, tileY;
if (!CellClass::ScreenCoordsToIsoTile(x, y, tileX, tileY)) {
return;
}
x = tileX * CELL_PIXEL_W;
y = tileY * CELL_PIXEL_H;
}
bool CellClass::ScreenCoordsToIsoCoords(COORDINATE screenCoord, COORDINATE& isoCoord) {
int x, y;
Map.Coord_To_Pixel(screenCoord, x, y);