//-----------------------------------------------------------------------------
// Name: class CMap
// Desc: Class to construct the main map for a tile-based game
// All things you need to operate a map are included.
//-----------------------------------------------------------------------------
class CMap
{
public: CMap();
virtual ~CMap();
BOOL Create( int nPosImage, int nLevel = 0 );
VOID Destroy();
TCHAR GetTile( int row, int col ){ return m_aMap[row][col]; }
VOID SetTile( int row, int col,TCHAR cContent ){ m_aMap[row][col] = cContent;}
BOOL CanPass( int row, int col );
BOOL CanHit( int row, int col );
BOOL CanDestroy( int row, int col, BOOL bDestroyConcrete );
HRESULT Draw();
VOID DestroyTile( int row, int col );