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