Jump to content
  • Advertisement
  • entries
  • comments
  • views

Progress Report

Sign in to follow this  


I finally got around to breaking ground on actual game code. I removed some of the older code I had for the Empire setup, and uid stuff. It wasn't very modular, meaning server and client code couldn't share what was essentially the same in game object. So this afternoon:

- Changed namespaces around, so that there is moe.server and moe.client and moe, rather than moe, moeserver, and moeclient.
- Moved some of the shared code stuff [uids in particular] from the server file and into a shared file.
- Removed the old Empire class.
- Added a "HasUID" interface, rather than it being an autogenerated member of an abstract base class.
- Added new Empire, Unit, Profession, Tile, Path, and Race classes; most of which are empty.
- Added data members, enumerations, events, and properties for the Unit class. It's now about... 60% done for just the data and event scaffolding.

I'm going to try and focus a good deal on events for much of the data. They've worked out pretty well in other code I've written to allow extensibility to code without modification. The idea being that a Unit itself will have various events that can occur to it, which the server and client then react differently to.

Not some novel approach to many of you I bet... I wish I had the time and money to go back to school to learn this properly.
Sign in to follow this  


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!