9:16pm - Late start tonight, but that's okay. I got some good rest today.
First up on the agenda, moving the movement code from the actors into the map. The actors will tell the map to move them, instead of just modifying the map to move themselves.
9:19pm - On closer observation, the code that used to move actors on the map is missing. I must have deleted it without thinking ahead. Or maybe I'm just remembering poorly and the functionality wasn't so complex as to require copying?
Anyways what's past is past and I need to re-write the movement code anyways.
9:46pm - Okay I've moved the movement to the map class. Now the actor just calls a method on the map class to move itself.
The next step is the attack code. Previously, I had set it up so that an actor could attack in a direction, and hit whatever was there. This is a bit tricky now, since there could be many things in that direction, or nothing, or a wall, in addition to just one thing. So, I'm not sure what to do about that.
I'm going to have to halt and give this some thought.
11:50pm - I gave it some thought and I think I'm going to have to implement the Command Pattern to handle actor events, which is a lot more work to implement, but I'll get it done next time. It's too late now.
First up on the agenda, moving the movement code from the actors into the map. The actors will tell the map to move them, instead of just modifying the map to move themselves.
9:19pm - On closer observation, the code that used to move actors on the map is missing. I must have deleted it without thinking ahead. Or maybe I'm just remembering poorly and the functionality wasn't so complex as to require copying?
Anyways what's past is past and I need to re-write the movement code anyways.
9:46pm - Okay I've moved the movement to the map class. Now the actor just calls a method on the map class to move itself.
The next step is the attack code. Previously, I had set it up so that an actor could attack in a direction, and hit whatever was there. This is a bit tricky now, since there could be many things in that direction, or nothing, or a wall, in addition to just one thing. So, I'm not sure what to do about that.
I'm going to have to halt and give this some thought.
11:50pm - I gave it some thought and I think I'm going to have to implement the Command Pattern to handle actor events, which is a lot more work to implement, but I'll get it done next time. It's too late now.