// 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. class ACTION_IfCritical extends ScriptedAction; var(Action) name FailureTag; //var Failure T; var LeveeTile L; var GeoFeedback G; /// Almar - Modified to support LeveeTile 27-9-2007 function ProceedToNextAction(ScriptedController C) { C.ActionNum += 1; ///Nothing found yet, try a new LeveeTile: ForEach C.AllActors(class'LeveeTile',L, FailureTag) { /// Log("Critical: ? " @ L @ " - " @ L.Tag @ " - " @ FailureTag); break; } /// Did we found a new tile? if ( L != None && !L.bCritical ) { //log("Action_if Critical."@T.CurrentState@T.CurrentState); //log("Action_if Critical. is Failure failded"@T.bFailed); ProceedToSectionEnd(C); //log("Action_if Critical."@T.CurrentState@T.CurrentState); L.CurrentState=STA_Relevant; } else { L.CurrentState=STA_Critical; 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 Critical" }