A steam pipe connected to the locomotive (where that puff of leaking steam is seen), feeds the steam underground to the lakeside water pump which in turn pumps the water up to the crane filling the locomotive's tank.