using System; using System.Collections.Generic; using System.Text; using DNAModule.Sunweaver.DataPrototypes; namespace DNAModule.Sunweaver.Commands.Abstracts { abstract public class UnaryBooleanLogic : BasePair { protected VirtualMachine VM; public override void Implementation(VirtualMachine VM) { //fizzle if (VM.BoolStack.Count() < 1) return; this.VM = VM; Operation(VM.BoolStack.Pop()); } /// /// An abstract method child classes implement with the specific implementation /// /// Top bool value abstract public void Operation(bool a); } }