Jump to content
  • Advertisement
  • entries
    359
  • comments
    237
  • views
    189541

Paths and logging

Sign in to follow this  
Telastyn

87 views

Spent a little time today working on Moe after a lengthy nap after staying up too long watching the Detroit-Edmonton game last night. I added a logging-strategy object for both the client and server, as well as adding some basic milepost logging to the process. Something I should've done before, but didn't since the more 'engine' parts have their own logging and that's where it was needed.

I also worked a bit on the Paths, changing them over to the base/client/server pattern I've used with the other objects, as well as adding an "improvement" flagset for roads/rivers/teleporters. To help that, I made a movement definition class to take a set movement mode [walking/swimming/flying] and return the movement cost based upon the path. That then will likely be handled by a higher level "movement" action handler which will incorporate modifiers such as racial or technological bonuses. It will also likely include LoS and combat detection to assist client decision making.

I don't care for the design, but movement involves so many disparate areas [tiles, units, enemy units, tech, empire relations, FoW, racial bonuses, items...] it's neigh impossible to include it all to one spot, and hard to seperate the differing parts out cleanly.

In other news, the project is pushing 10,000 lines [9794], which is of course fairly useless as a metric. Still, I'm a little dismayed at how little the codebase actually does for such a number.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!