private void ResolveObject(ObjectSpecification objectSpecification) { var x = (int)objectSpecification.X; var y = (int)objectSpecification.Y; switch (objectSpecification.TextureInfo.TextureFile) { case "Game/Cow": critters.Add(objectsFactory.GetCow(x, y, objectSpecification.TextureInfo)); break; case "Game/Tree": landscape.Add(objectsFactory.GetTree(x, y, objectSpecification.TextureInfo)); break; case "Game/Sky": backgroundObjects.Add(objectsFactory.GetBackground(objectSpecification.TextureInfo)); break; case "Game/Cloud": backgroundObjects.Add(objectsFactory.GetBackgroundObject(x, y, objectSpecification.TextureInfo)); break; case "Game/Cloud2": backgroundObjects.Add(objectsFactory.GetBackgroundObject(x, y, objectSpecification.TextureInfo)); break; case "Game/Windmill": backgroundObjects.Add(objectsFactory.GetBackgroundObject(x, y, objectSpecification.TextureInfo, 3)); break; /*case "Game/Windmill-blade": critters.Add(objectsFactory.GetRotatingObject(x, y, objectSpecification.TextureInfo)); * break;*/ case "Game/Land": landscape.Add(objectsFactory.GetLandscape(x, y, objectSpecification.TextureInfo)); break; case "Game/HighLand": landscape.Add(objectsFactory.GetLandscape(x, y, objectSpecification.TextureInfo)); break; case "Game/Character": character = objectsFactory.GetCharacter(x, y, objectSpecification.TextureInfo); break; case "Game/Tulip": items.Add(objectsFactory.GetTulip(x, y, objectSpecification.TextureInfo)); break; } }