#pragma once
struct MyPoint { int x, y; };

//Change this MyPoint to move the ENTIRE play view
MyPoint		_ScrnOrigin		= { 60, 45 };

//Dimension player's view window
const int	_ScrnPixW		= 467;//number of pixels
const int	_ScrnPixH		= 467;//number of pixels

//RECT that will be used for clipping (in pixels)
RECT		_PlayScreen		= { _ScrnOrigin.x, _ScrnOrigin.y, _ScrnOrigin.x + _ScrnPixW, _ScrnOrigin.y + _ScrnPixH };

MyPoint		_CenterScrn		= //Middle of player's view
{
	int(_ScrnPixW / 2) + _ScrnOrigin.x,
	int(_ScrnPixH / 2) + _ScrnOrigin.y
};


//SQUARE MAP------------------------------------------------------------------------------------------------//
const int	_SqrScrnW		= 17;//Number of Tile wide														//
const int	_SqrScrnH		= 17;//Number of Tile high														//
																											//
const int	_SqrMapCentX	= int(_SqrScrnW / 2); //Center of player's view									//
const int	_SqrMapCentY	= int(_SqrScrnH / 2); //Center of player's view									//
																											//
const int	_SqrTileW		= 32;//Tile's number of pixels of Tile											//
const int	_SqrTileH		= 32;//Tile's number of pixels of Tile											//
																											//
const int	_SqrTileOffX	= _CenterScrn.x - int(_SqrTileW * _SqrMapCentX) - (_SqrTileW / 2) + 1;			//
const int	_SqrTileOffY	= _CenterScrn.y - int(_SqrTileH * _SqrMapCentY) - (_SqrTileH / 2);				//
																											//
const int	_MainSqrW		146 + (2 * _SqrMapCentX);														//
const int	_MainSqrH		98  + (2 * _SqrMapCentY);														//
//----------------------------------------------------------------------------------------------------------//

//These are temporary X-Y coordinates to start the view - replace using the Avatar's x-y's
int			_SqrX			= _SqrMapCentX;
int			_SqrY			= _SqrMapCentY;

//ISOMETRIC (RHOMBUS) MAP-----------------------------------------------------------------------------------//
const int	_IsoScrnW		= 17;//Number of Tile wide														//
const int	_IsoScrnH		= 65;//Number of Tile high														//
																											//
const int	_IsoMapCentX	= int(_IsoScrnW / 2); //Center of player's view									//
const int	_IsoMapCentY	= int(_IsoScrnH / 2); //Center of player's view									//
																											//
const int	_IsoTileW		= 32;//Tile's number of pixels of Tile											//
const int	_IsoTileH		= 16;//Tile's number of pixels of Tile											//
																											//
const int	_IsoTileOffX	= _CenterScrn.x - int(_IsoTileW			* _IsoMapCentX) - (_IsoTileW / 2) + 1;	//
const int	_IsoTileOffY	= _CenterScrn.y - int((_IsoTileH / 2)	* _IsoMapCentY) - (_IsoTileH / 2) + 1;	//
																											//
const int	_MainIsoW		146 + (2 * _IsoMapCentX);														//
const int	_MainIsoH		 98 + (2 * _IsoMapCentY);														//
//----------------------------------------------------------------------------------------------------------//

//These are temporary X-Y coordinates to start the view - replace using the Avatar's x-y's
int			_IsoX			= _IsoMapCentX;
int			_IsoY			= _IsoMapCentY;

//HEXO-METRIC (Hexagon) MAP---------------------------------------------------------------------------------//
const int	_HexScrnW		= 11;//Number of Tile wide														//
const int	_HexScrnH		= 37;//Number of Tile high														//
																											//
const int	_HexMapCentX	= int(_HexScrnW / 2); //Center of player's view									//
const int	_HexMapCentY	= int(_HexScrnH / 2); //Center of player's view									//
																											//
const int	_HexTileW		= 48;//Tile's number of pixels of Tile											//
const int	_HexTileH		= 30;//Tile's number of pixels of Tile											//
																											//
const int	_HexTileOffX	= _CenterScrn.x -  int(_HexTileW * _HexMapCentX) - 15;							//
const int	_HexTileOffY	= _CenterScrn.y - (int(_HexTileH * _HexMapCentY) / 2) - 15;						//
																											//
const int	_MainHexW		146	+ (2 * _HexMapCentX);														//
const int	_MainHexH		 98	+ (2 * _HexMapCentY);														//
//----------------------------------------------------------------------------------------------------------//

//These are temporary X-Y coordinates to start the view - replace using the Avatar's x-y's
int			_HexX			= _HexMapCentX;
int			_HexY			= _HexMapCentY;

void InitPlayScrn();