// September 2015 // Levee Patroller / Dijk Patrouille // This source file is (c) by Deltares. This source file is open source but only available to select users. Do not redistribute without written permission of Stichting Deltares, Delft, The Netherlands. // This header has been automatically generated. //============================================================================= // ACTION_Failed // ------------------------------------------------------------ // Created by Tom The // © 2006, Geodelft // // 2006-10-05 The Renamed from ACTION_ifFailed; Implemented proceed to next section always // 2006-10-05 The Removed ProceedToSectionEnd // 2007-09-27 Jln Modified to support LeveeTile //============================================================================= class ACTION_Failed extends ScriptedAction; var(Action) name FailureTag; ///var Failure T; var LeveeTile L; var GeoFeedback G; function ProceedToNextAction(ScriptedController C) { ///Nothing found yet, try a new LeveeTile: ForEach C.AllActors(class'LeveeTile',L, FailureTag) { /// Log("Failed: ? " @ L @ " - " @ L.Tag @ " - " @ FailureTag); break; } if (L != None) { /// New LeveeTile found: L.CurrentState=STA_Failed; } C.ActionNum += 1; ForEach C.AllActors(class'GeoFeedback',G) break; g.logFailureState(L); } function bool StartsSection() { return true; } function string GetActionString() { return ActionString@L@FailureTag; } defaultproperties { ActionString="If Relevant" }