Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Dungeons & Dragons
Classes, Subclasses, and Object Oriented Programming
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="GSHamster" data-source="post: 6179524" data-attributes="member: 20187"><p>I may have glossed over some points that I should have included. Here are some additional thoughts.</p><p></p><p>For subtype polymorphism to work correctly, a subclass cannot contradict the base class. This is called the <em>Liskov Substitution Principle</em>. If it does contradict, you will end up with situations where the subclass is an imperfect substitute, and may have conflicts.</p><p></p><p>For example, let's you define a base Cleric class that can wear heavy armor. You cannot then create a subclass Priest which cannot wear heavy armor, only robes. That would violate Liskov. You can go the other way around, and have Priest be the base class, and Cleric the subclass which can wear heavy armor in addition to robes.</p><p></p><p>Again, we go back to the Psionist. Psionist inheriting from Mage contradicts the Mage being able to cast arcane spells, and is a violation of Liskov. </p><p></p><p>If it was up to me, given the current class structure in Next, I would have Psionist inherit from Rogue instead. We could justify Sneak Attack by saying that all Psionists have a touch of precognition and telepathy that unconsciously aids them in combat. Sneak attack could either follow the basic rogue rules, or be tweaked to something like "gains Sneak Attack when fighting intelligent opponents", reinforcing the idea that the psionist is picking up some of her opponent's thoughts.</p></blockquote><p></p>
[QUOTE="GSHamster, post: 6179524, member: 20187"] I may have glossed over some points that I should have included. Here are some additional thoughts. For subtype polymorphism to work correctly, a subclass cannot contradict the base class. This is called the [i]Liskov Substitution Principle[/i]. If it does contradict, you will end up with situations where the subclass is an imperfect substitute, and may have conflicts. For example, let's you define a base Cleric class that can wear heavy armor. You cannot then create a subclass Priest which cannot wear heavy armor, only robes. That would violate Liskov. You can go the other way around, and have Priest be the base class, and Cleric the subclass which can wear heavy armor in addition to robes. Again, we go back to the Psionist. Psionist inheriting from Mage contradicts the Mage being able to cast arcane spells, and is a violation of Liskov. If it was up to me, given the current class structure in Next, I would have Psionist inherit from Rogue instead. We could justify Sneak Attack by saying that all Psionists have a touch of precognition and telepathy that unconsciously aids them in combat. Sneak attack could either follow the basic rogue rules, or be tweaked to something like "gains Sneak Attack when fighting intelligent opponents", reinforcing the idea that the psionist is picking up some of her opponent's thoughts. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Dungeons & Dragons
Classes, Subclasses, and Object Oriented Programming
Top