Superclass: Placeholders


Not Feeling It

I'ma just start this post with some complaining, just seems to be my mood this week. So, another super-late night of meetings for the day job, starting around 11pm and the last one ending at nearly 5am. Sure, there was a gap in there where I tried to nap, but napping never really seems to work for me. I did get to sleep in a bit this morning, so that's good. But then I still had a heavy workload at the day job. Now that I'm all done for the day, I really don't feel like doing a whole lot on this project.

But I must push through. I must do something to maintain momentum. Especially since tomorrow is going to be another messed up day. I have to renew my visa here in the Philippines, which means spending the whole day in a car and at the mall. Then, once that's all done, I still have to put in a day's work at the day job. All of this on top of the possibility of worse than average traffic due to it being the last Friday before Christmas, and there will be a parade happening in a nearby area. . . Man, I can't wait until my vacation.

Doing Something

So, let's look back at what I've already done to figure out what I need to do today. I have my base operational state with it's variables and some placeholder functions for enter and exit. I have my subclasses, with nothing in them so far. I need a "check" built into my operational state for interactability. So, a new function for that, can_interact? Just a placeholder that returns true for now. How about on_interact()? Let's throw that in there as a placeholder too. A placeholder function for resetting the interaction limit too, that's now added. 

Next Time

It's not much, but it is something. That's what I was striving for, to do something, anything on the game today. I've defined three new functions in my superclass, even if they are just placeholders. This is a good start. Next time I can figure out what specifically needs to go into them. I mean, I already have a general idea for each. My enter (and/or exit) need to reset my interaction limit, connect/disconnect signals. Actually, that's a good question for Gemini. . . how would signal connections and disconnections work in this. 

Seems I am thinking about this correctly. I can can connect a signal in enter and disconnect it in exit with a placeholder defined for the function in the superclass. And if I have that same function fully defined in the subclass, the connection will actually trigger that function. Of course, I'm basing all of this understanding on Gemini's information, which has a less than stellar track record for accuracy. Luckily, I'll be able to test it to know for sure if it'll work once I get that far.

Either way, I know what to work on tomorrow. I start by replacing my placeholder functions in the superclass with what they actually need to do. Just build out the specifics that will be common between my subclasses, like the checks for whether something can interact based on the state. Maybe the interaction limit reset signal connection/disconnection. Still, I have set a good starting point, with clear things to work on.

Leave a comment

Log in with itch.io to leave a comment.