#Plants vs Zombies help

18 messages · Page 1 of 1 (latest)

eternal wagon
#

Hi. So basically I have this project of Plants vs Zombies using OOP concepts and i'm having trouble with how to go about it.
They gave us this UML diagram but i really can't understand what to do with this e.g the PlantFactory Class

rough impBOT
#

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.

astral stream
#

I would start with creating the base classes: Zombie, Plant, as well as Time and Scoreboard

eternal wagon
#

yes but i can't seem to figure out the how

astral stream
astral stream
eternal wagon
#

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

astral stream
#

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

eternal wagon
#

what would you reccomend?

astral stream
# eternal wagon 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

tepid cave
#

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
rough impBOT
#

@eternal wagon Has your question been resolved? If so, type !solved :)

eternal wagon
#

!solved