elizabethburgessamt / StardewCropCalc

A calculator for optimal profit on growing crops in the game Stardew Valley
0 stars 0 forks source link

Create fields data structure #5

Open elizabethburgessamt opened 6 years ago

elizabethburgessamt commented 6 years ago

Make a structure of a field to plant crops. Different variations to be discussed below.

elizabethburgessamt commented 6 years ago

So far, we have discussed 3 different field layouts:

elizabethburgessamt commented 6 years ago

We need an interface to support the different fields. They each need a value for crop capacity and a count of how many trellis crops it can support

elizabethburgessamt commented 6 years ago

I changed the interface to an abstract class per Commit 89b9bdd.

For the 3 discussed layouts, I've figured out the maximum trellis crop count. Since these are constant amounts, they won't really need to be set save for initialization. Diagrams showing the layout will be posted soon.

At this point, it makes sense to start issues to create classes for each field unless we're going to do some polymorphism thing.