I figured out the problem with the World Weaver fight class. I was placing debug messages throughout the various methods of the class when I encountered one method whose code was commented out with a note stating that the engine needs to be rewritten still. A while ago I did a thorough rewrite of the client code and apparently hadn't finished the fighting engine. It seems since the rewrite I hadn't yet done any games that did fighting.
I gave it a couple of variables, one for the Player and one for the Opponent - for easy access in the various methods. I had to tweak some of the message logic and cleaned up some method definitions to use the new variables. Now it works. It still doesn't show the 'kill' message properly but the core fighting logic seems good so far.
Back to work on defining the Atomic Cage game.
No comments:
Post a Comment