* made terrainName plain
* made terrainDef_s a class
* reduce scope