using Gtk; using System; public class Hills:TerrPlugin{ mutable host:TerrHost; public Host:TerrHost { set { host=value; } } mutable nr:int; //settings mutable sCircles=1000; mutable sEllipse=false; mutable sMaxRad=25; //-------------------------------------------------------------------------------------------------------------- public Register(num:int):void{ nr=num; def mItem=MenuItem("hills"); host.MGener.Append(mItem); mItem.Activated+=EventHandler(optionsWin); } //-------------------------------------------------------------------------------------------------------------- public Run():void{ host.Start(nr); def r=Random(); def progStep=100/(sCircles*100):>double; def map=host.HMap; def sizeX=map.SizeX; def sizeY=map.SizeY; for (mutable x=0; x=0) when ((i>=0)&&(i=0)&&(ii