logan-r / vilify

Unleash Your Inner Mad Scientist and Destroy the World (with Ice Cream) in this Open Source HTML5 Game
http://logan-r.github.io/vilify/
GNU General Public License v3.0
32 stars 25 forks source link

Add Class Inheritance #90

Closed logan-r closed 9 years ago

logan-r commented 9 years ago

Classes should inherit from superclasses in order to avoid repeat code. The top level object should be GameObject which has the children Item and PhysicalObject. PhysicalObject should have the children AnimateObject and Tower. AnimateObject should have the children FightingObject and Projectile. FightingObject should have the children Hero and Monster

sru commented 9 years ago

How are you going to do the inheritance? What specific way?

logan-r commented 9 years ago

I was planning on making a subclass inherit from a superclass by having the child class use its parent class's model, view, and control objects as the base for its own model, view, and control objects. See b085cb4ae300230c7ebf668e338a142ef8cdada7