Wolfpack150 / BaseballProject

1 stars 0 forks source link

Issues on Gameplay functions #7

Closed bvlundberg closed 9 years ago

bvlundberg commented 9 years ago

While working on some of the options in the Gameplay class, I noticed that at times we will need to access certain position players, such as the current catcher on defense. In order to access players, do we need to have the teams set a "Team" to either "Offense" or "Defense", and flip flop them depending on the inning? If we do this, we will be able to do something like Defense->Team1->Roster->Catcher->errorFunction. Think about it and we can talk about it one Tuesday, or post thoughts on GitHub.

bvlundberg commented 9 years ago

As we talked about in class, we are going to have a "search" function that takes the position string as input and finds the player at that position for a particular team. There will only be one player per position per team. This task was assigned to Lionel in the lab. It will be implemented in the Team class.

Also, add the correct function that will set up the home and visitor teams to a Team m_home and m_away (create these as well). The teams will be initialized after the lineups are created.