The Firefighter Game with state-varying cost functions