Ver código fonte

now every broyne after a unsafe one is also marked as unsafe

winforms
benjamin.m 5 anos atrás
pai
commit
02b21b8df0
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3
    2
      Buhnenrennen/GraphicGenerator.cs

+ 3
- 2
Buhnenrennen/GraphicGenerator.cs Ver arquivo

@@ -95,8 +95,9 @@ namespace Buhnenrennen
groynePositions.Add( groyne, rect );
var huntedTimedGroyne = huntedMap[ level ].Find( timedGroyne => timedGroyne.Groyne == groyne );
var hunterTimedGroyne = hunterMap[ level ].Find( timedGroyne => timedGroyne.Groyne == groyne );
var fillBrush = huntedTimedGroyne.TotalTime > hunterTimedGroyne.TotalTime ? hunterFillBrush : huntedFillBrush;
var brush = huntedTimedGroyne.TotalTime > hunterTimedGroyne.TotalTime ? hunterBrush : huntedBrush;
bool isUnsafe = huntedTimedGroyne.TotalTime > hunterTimedGroyne.TotalTime || groyneBorderBrush[ huntedTimedGroyne.ParentGroyne.Groyne ] == hunterBrush;
var fillBrush = isUnsafe ? hunterFillBrush : huntedFillBrush;
var brush = isUnsafe ? hunterBrush : huntedBrush;
groyneBorderBrush.Add( groyne, brush );

if ( groyne.Type == 'x' )

Carregando…
Cancelar
Salvar