#Plants vs Zombies help
18 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
I would start with creating the base classes: Zombie, Plant, as well as Time and Scoreboard
yes but i can't seem to figure out the how
As for the Factory classes, those are part of the factory design pattern: https://refactoring.guru/design-patterns/factory-method/cpp/example#:~:text=Factory Method in C%2B%2B,constructor call ( new operator).
As for how to create classes, learncpp.com can walk you through it (that is the first site)
no no i mean
i know how to create classes and everything
but what attributes or functions i should add
that is what i'm stuck at
Honestly, the UML diagram doesn't show that, so either check the assignment, talk to the professor, or just go by instinct of what you think you'll need
what would you reccomend?
Probably just make the skeleton for now, without any members (or ones that make sense); and then talk to the professor about how to proceed, since I don't know the specifics of the assignment, so I can't really give much more guidance than that
Which one is your problem?
- You can't think of what data and methods to put in the classes
- You don't know how to define a class
the first one
hmm okay thank you
@eternal wagon Has your question been resolved? If so, type !solved :)
!solved