add MapTerrainParser class

this class help us handle the terrain data in map files.