DwangDistracted / Zombies-are-Vegan

Zombies are Vegan
0 stars 1 forks source link

Refactor combat for multi-plant support #82

Closed dershao closed 5 years ago

dershao commented 5 years ago

Now that we have multiple plant types, the combat engine is outdated.

The combat engine plant attack is inspired by the strategy pattern. It takes in a PlantType and decide what kind of attack to perform.

dershao commented 5 years ago

Using #81