Refactor character code #33
Loading…
Reference in New Issue
No description provided.
Delete Branch "lunacb/vantaMOO:refactor_characters"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR refactors character code to make it more correct and easier to maintain. It replaces #30.
First, to avoid ambiguity and surprising behavior, it makes the
DefaultCharacter
class inherit from theContribRPCharacter
class and theContribRPCharacter
class from theClothedCharacter
class. That way character method calls toDefaultCharacter
will move to the first parenting contrib class, and that class may further defer the call up to the next parenting class when they're done with it.Second, all custom-built character code is no longer inherited by the
DefaultCharacter
class. Instead the code is called directly by methods within it. That way, the control flow and logic of further additions will be easier to follow.Solves #29.