public void LifeOperation(LifeOperationStrategy operation, int value)
 {
     if (this.IsAlive())
     {
         this.life = operation.LifeOperation(this.life, value, this.maxNumberOfLife);
     }
 }
Example #2
0
 public void PlayerImplTestPlayer()
 {
     this.currentPlayer = new PlayerImpl("Alex", 2000, 3, 3);
     this.scoreOp       = new BasicScoreOperationStrategy();
     this.lifeOp        = new BasicLifeOperationStrategy();
 }