1
General / [SOLVED] Inherit Drawable or implement Draw() in SFML.net 2?
« on: November 21, 2011, 10:42:58 am »
It's not what I'd planned on originally, but this has led me to thinking about other ways to accomplish what I want, and I think I will adopt a component based approach, with another small class managing the drawables for each game object.
I now see what you meant by weak couplings, Nexus.
Thank you both, this has been a learning experience! I will mark the topic as solved.
Summary for future visitors searching for information on this topic: In SFML.net 2, you cannot inherit from Drawable (or Sprite, Shape, or Text). And while you can probably do it in the C++ version, it might not be a good idea.
I now see what you meant by weak couplings, Nexus.
Thank you both, this has been a learning experience! I will mark the topic as solved.
Summary for future visitors searching for information on this topic: In SFML.net 2, you cannot inherit from Drawable (or Sprite, Shape, or Text). And while you can probably do it in the C++ version, it might not be a good idea.