8:04am - Today I'm working from home. I've got a big errand in the afternoon and lots of plans in the midday so my only chance to work is in the morning, now. That said, I've been having problems with depression and working from home, so I'm starting writing this journal right away to try and psyche myself up into doing something productive.
8:21am - I was just getting ready, getting my tools loaded up and such when I hit a mental wall. A big 'Oh shit what am I doing I don't want to be doing this abort abort abort!' sort of wall. I'm trying to calm down and focus by writing about it here.
I was very inspired a couple days ago when I worked last, and I came up with the idea of making a new Brain class to handle NPC Processing and AI. Without the higher level of thinking I was in at the time it's hard to remember how it was supposed to work. I kind of understand it and kind of don't.
Basically, each actor will have a Brain object property which has a ConsultBrain() public method. When the actor's turn comes around in the turn order, if it has a Brain then the WorldController will call the ConsultBrain() function on the Brain, and ConsultBrain will return a string command for the WorldController to process which is that NPC's turn's action.
I need to make the Brain class. I'm not sure if it should be a Monobehavior or not. I'm thinking not? Well we'll see, I'll start it as not and make it one if neccesary later on.
The Brain Class also needs both a ConsultBrain method and a Think method, and the Think method should be over-ridden. There will be brain subclasses for different brain types. I think that the Brain class should be abstract and so should the Think method. I can add any code that all brains share to the abstract Brain class and use Brain subclasses for all the varying implementations.
9:23am - Okay I made the Brain abstract class and the CivilianBrain class. The CivilianBrain issues commands to move in a square pattern. Now I just have to integrate the brain into the actor so that the WorldController takes commands from the brain and processes them. But that will be another time. I'm feeling hungry and parched; which is odd since I had a drink only an hour ago. But also stressed. So I'm going to finish up a little early.
8:21am - I was just getting ready, getting my tools loaded up and such when I hit a mental wall. A big 'Oh shit what am I doing I don't want to be doing this abort abort abort!' sort of wall. I'm trying to calm down and focus by writing about it here.
I was very inspired a couple days ago when I worked last, and I came up with the idea of making a new Brain class to handle NPC Processing and AI. Without the higher level of thinking I was in at the time it's hard to remember how it was supposed to work. I kind of understand it and kind of don't.
Basically, each actor will have a Brain object property which has a ConsultBrain() public method. When the actor's turn comes around in the turn order, if it has a Brain then the WorldController will call the ConsultBrain() function on the Brain, and ConsultBrain will return a string command for the WorldController to process which is that NPC's turn's action.
I need to make the Brain class. I'm not sure if it should be a Monobehavior or not. I'm thinking not? Well we'll see, I'll start it as not and make it one if neccesary later on.
The Brain Class also needs both a ConsultBrain method and a Think method, and the Think method should be over-ridden. There will be brain subclasses for different brain types. I think that the Brain class should be abstract and so should the Think method. I can add any code that all brains share to the abstract Brain class and use Brain subclasses for all the varying implementations.
9:23am - Okay I made the Brain abstract class and the CivilianBrain class. The CivilianBrain issues commands to move in a square pattern. Now I just have to integrate the brain into the actor so that the WorldController takes commands from the brain and processes them. But that will be another time. I'm feeling hungry and parched; which is odd since I had a drink only an hour ago. But also stressed. So I'm going to finish up a little early.