Saturday, September 02, 2006

New Developments

I know I haven't posted in quite a while. I've been busy. I thought that I should let everyone know about the most recent developments in version 4.0 of War on Lithon.

I'm currently working on changing the way territory information is stored. I used to have this info (number of troops, ownership, number of troops moving, and the destination of the move) stored in separate variables (matrices actually). This ment that each territory could only store one value for each property. I decided this was too limiting, so I have created three new classes of object, Territory, Army, and Move. The new setup of the program is going to be, a matrix of Territory objects, each of which contains a vector (a structure in Java for storing groups of objects) for Army objects and a vector for Move objects, as well as variables for ownership and type of territory (undeveloped, city, or military base). What this change will do is, let you set more that one move per territory, and have armies from different countries in the same territory. I'm still in the middle of getting the part related to using the moves vector working.

Well, I hope at least one person (other than me) found this interesting.
See ya later.

0 Comments:

Post a Comment

<< Home