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