r/programminghorror • u/SocksOnHands • Feb 25 '26
Object Oriented Design: Pokemon
I don't know how to properly post a link to a video, but check out this over engineered, overly complicated and confusing design for an object oriented Pokemon battle system that can't actually support all the gameplay mechanics of a real Pokemon battle: https://youtu.be/CyRtTwKeulE?si=iZqoCPxjv1QU3ZJt
I don't have anything against object oriented design if done well, but when you start implementing classes for simple logical operations like AND and OR, you're probably going down the wrong track.
0
Upvotes
View all comments
Show parent comment
-3
u/SocksOnHands Feb 25 '26
It locks in fundamental assumptions, so when change inevitably happens, large portions will need to be rearchiteched. For example, right off the bat he models a battle as having an attacker and a defender. Now what happens if the game design changes and there is a party going against multiple enemies? This didn't take into account targeting an enemy or attacks that can damage multiple enemies. The design of the system will need to go back to square one and be reworked to support that.