예제 #1
0
    public TeamBench()
    {
        offensiveStrategy = new OffensiveStrategy();
        defensiveStrategy = new DefendLeadStrategy();
        this.SetStrategy(this.offensiveStrategy);

        teamScore         = 0;
        opposingTeamScore = 0;
    }
예제 #2
0
 // Helper method to set the current strategy:
 protected void SetStrategy(CoachingStrategy strategy)
 {
     this.currentStrategy = strategy;
 }