// 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_MoveRedMarker // ---------------------------------------------------------------------------- // Created by Maarten van Zomeren // © 2007, Geodelft // // 2007-01-24 Zmr Created // 2007-09-27 Jln Modified to support new LeveeTile //============================================================================= class ACTION_MoveRedMarker extends ScriptedAction; var(Action) name FailureTag; /// 2007-11-15 Jln Keep this here for compatibility! var(Action) vector Location; var LeveeTile L; function ProceedToNextAction(ScriptedController C) { ForEach C.AllActors(class'LeveeTile',L,FailureTag) break; C.ActionNum += 1; ///Log("MoveRedMarker"); if (L != none) { /// Found: if(L.CurrentRedMarker != none) { if (L.MyFailure != none) { //Log("MoveRedMarker - found, and moving to:" @ L.MyFailure.RedMarkerLocation ); /// Update to failure location: L.CurrentRedMarker.SetLocation( L.MyFailure.RedMarkerLocation ); } } } } function bool StartsSection() { return true; } function string GetActionString() { return ActionString@L@FailureTag; } defaultproperties { ActionString="Move Red Marker" }