Ferby's Blog
These are just some random ramblings, because I have nothing better to do with my time.

Sunday, June 10, 2007

Finally a few updates

By John, Annie, Lucy and the Woof-Woofs at 9:52 PM

Working 40 hours a week staring at code doesn't make it easy to work on hobby projects during my time off. Lucky for you all I managed to get some done tonight. You'll have to wait for me to hook up the SVN server again to see it, but well one thing at a time.

First up I installed eclipse and created a project for this game. Secondly I did some clean up. I changed my method names to have a naming convention. Which basically is like this, camel-case and full words. So instead of GetMsg() it would be getMessage().

Next up I added to each class a String CLASS_NAME, and every method that uses logging a String METHOD_NAME. This change makes more sense with my next item to mention.

Finally I updated the logging system. I tossed it all in its own folder and plan to make a package(.jar) out of it so I can reuse it. Next up I wrote a Message class that has a MessageType, time, className, methodName, and message text. This gets created each time the log.add() method is called. It makes it a whole lot easier to debug when every output comes with a class name and a method name. Plus it allows me to filter out what gets displayed in the chat box and allowing me to dump everything to the console.

Hopefully I can manage some more motivation over the next weekend and actually get some game play implemented and do my map refactoring.

 
Category:

0 comments so far.

Something to say?