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