| } | } | ||||
| TimedGroyne safePathSub = safePath; | TimedGroyne safePathSub = safePath; | ||||
| do | |||||
| if ( safePath != null ) | |||||
| { | { | ||||
| graphics.ConnectRectangles( new Pen( safePathBrush, borderWidth ), groynePositions[ safePathSub.Groyne ], groynePositions[ safePathSub.ParentGroyne.Groyne ], borderWidth ); | |||||
| safePathSub = safePathSub.ParentGroyne; | |||||
| } while ( safePathSub.ParentGroyne != null ); | |||||
| do | |||||
| { | |||||
| graphics.ConnectRectangles( new Pen( safePathBrush, borderWidth ), groynePositions[ safePathSub.Groyne ], groynePositions[ safePathSub.ParentGroyne.Groyne ], borderWidth ); | |||||
| safePathSub = safePathSub.ParentGroyne; | |||||
| } while ( safePathSub.ParentGroyne != null ); | |||||
| } | |||||
| else ColorMessageBox.Show( "Das gegebene Scenario enthält keine sichere Route für Minnie" ); | |||||
| foreach( var groyne in groyneBorderBrush.Keys ) | foreach( var groyne in groyneBorderBrush.Keys ) | ||||
| { | { |