Paul Barba - 2009-04-21

Here's a suggested starting place for our API:

CreateMap(Map* pMap, uint width, uint height);

SaveMap(Map* pMap, char* acFile);

LoadMap(Map* pMap, char* acFile);

LoadTileset(Map* pMap, Tileset* pTileset, char* acFile)

DrawRectangle(map* pMap, Tile* pTile,  uint n, uint y, uint length, uint width);

DrawPoint(map* pMap, Tile* pTile, uint x, uint y);

What's everyone think? On the Java side, we'd drop the pointers and switch to strings. The contents of the objects will be based on what Geordi needs to build the engine.

The reason I used a procedural style is I find that's easiest to port between languages. Once the data is into the language on the other side of the wrapper, we can expose the functionality is a language appropriate way, generally objects.

We'll need a lot more functionality in the long, but I think this will be enough to write simple demonstration maps.