Right, so what have I achieved so far?
Not much to be honest, we're currently in the process of moving, so all my free time is being spent running around solicitors and packing! My god we have a lot of stuff...
Anywho, I've managed to flesh a few basic interfaces out for the objects. I'm not ready to post them here yet, as they're still taking shape. I've also been playing around with the State Machines for the Aliens/Marines and the game Process.
The Aliens State Machine is a fairly simple thing, as the Aliens only really have two states running around killing things and Dead!
As you can see, not much to an Alien. So what about the Marine? I haven't finished his State Machine yet, but this is what it looks like at the moment.
It's a tad more complex. According to the game rules there is an additional state called "Grabbed" which can be used in conjunction with most of these states. So I've decided to have that as a property of the object.
I've also been fiddling around with some base classes. I'd like to use the Double Dispatch pattern for the interaction between the Aliens and Marines when they fight, so I'm trying to figure out what the contract is between them, and who should be doing what.
I had a bit of a nasty realisation today, I'm going to need some sort of path searching mechanism for the game board for determing where players can move to, what the players can shoot and how the Aliens intelligently move around the board. I'll have to do a bit of reasearch on that one...
Enough waffle, next post I hope to have the interfaces defined and the State Machines complete.
Welcome, Prashanth!
5 years ago
No comments:
Post a Comment