Exemplo n.º 1
0
 public void Buffer(FirewallBuffer buffer)
 {
     buffer.Buff();
     if (buffer.bufferCount.Value <= 0)
     {
         lives.Value--;
     }
 }
Exemplo n.º 2
0
    public void SwitchLanesLeft()
    {
        FirewallBuffer oldBuffer = currentLane.Value.buffer;

        HelperMethods.CyclicalDecrement(ref currentLaneIndex, NUM_LANES);
        currentLane.Value = lanes[currentLaneIndex];

        if (HasSwitchedBuffers(oldBuffer))
        {
            currentBuffer.Value = currentLane.Value.buffer;
            orbManager.RotateLeft();
        }
    }
Exemplo n.º 3
0
 bool HasSwitchedBuffers(FirewallBuffer oldBuffer)
 {
     return(oldBuffer != currentLane.Value.buffer);
 }
Exemplo n.º 4
0
 public FirewallLane(FirewallBuffer buffer)
 {
     this.buffer = buffer;
 }