Esempio n. 1
0
 public void Buffer(FirewallBuffer buffer)
 {
     buffer.Buff();
     if (buffer.bufferCount.Value <= 0)
     {
         lives.Value--;
     }
 }
Esempio 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();
        }
    }
Esempio n. 3
0
 bool HasSwitchedBuffers(FirewallBuffer oldBuffer)
 {
     return(oldBuffer != currentLane.Value.buffer);
 }
Esempio n. 4
0
 public FirewallLane(FirewallBuffer buffer)
 {
     this.buffer = buffer;
 }