Ejemplo n.º 1
0
 public void Execute(IGenerationInstruction instruction)
 {
     if (this.finished)
     {
         throw new Exception("Cannot modify game after finishing building game.");
     }
     instruction.Execute(this.game);
 }
Ejemplo n.º 2
0
 public void Execute(IGenerationInstruction instruction)
 {
     if(this.finished)
         throw new Exception("Cannot modify game after finishing building game.");
     instruction.Execute(this.game);
 }
Ejemplo n.º 3
0
 protected void executeInstruction(IGenerationInstruction instruction)
 {
     this.gameBuilder.Execute(instruction);
 }