/// <summary> /// Asettaa maaperän. Jos null, tarkoittaa sitä, että /// alue on ns. vapaata markkinaa eikä siinä kasva mitään /// </summary> /// <param name="ground"></param> public void SetGround(Ground ground) { Ground = ground; if (ground == null) { State = CropSpotState.Dirt; } else { State = CropSpotState.Grounded; } }
public CropSpot(KhvGame game) : base(game) { State = CropSpotState.Dirt; }
public CropSpot(KhvGame game, MapObjectArguments args) : base(game) { Position = args.Origin; State = CropSpotState.Dirt; }