Hello, loves! This morning we made something work. Will it support everything we now need? Why didn’t I ask that first? I didn’t ask that first because I felt that my initial idea for a single pluggable method was tricky enough and that what we’d learn would likely be useful even if the starting idea wasn’t strong enough. And it was tricky, especially now, with the MethodType feature in place, which allows us to pass in behavior fetched either from the class or an instance. Now, we’ll look at the existing Content classes and see what’s in there, if anything, that can’t be done with the current scheme, or where the current scheme seems to offer too little support. We’ll have to extend the CombinedContent to support run as well as interact_with_player, as we have not yet put in the properties that make it work. The most complex interact_with_player is this one: class DungeonControl(Content): def interact_with_player(self, dungeon) -> bool: self.state += 1 if self.state >=…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.