Commit 544aa2be authored by Jonathan Michalon's avatar Jonathan Michalon

Cleanup 3 forgotten/easy FIXMEs

parent 7f24d557
......@@ -103,7 +103,6 @@ public class Bot : OVCCClient.Client
case 3: npos.x--; break; /* left */
}
for (var j = 0; j < 4; j++) {
/* FIXME: this should probably be asynchronous... */
if (player.place_tile (npos)) {
debug ("Placed tile ID %u at %d %d angle %u", tile.id,
npos.x, npos.y, tile.rotation);
......
......@@ -40,50 +40,17 @@ namespace OVCC
}
}
/* FIXME: update the doc */
/**
* This module manages Tile Sets. Tile Sets are list of tiles and the number of
* them in the set.
* Tile Sets works together with tiles definitions to provide a set of tiles.
* This module manages tile sets which are a list of tiles and the amount of
* each of them in the set.
* TileSet works together with {@link Tile} to provide a set of tiles.
*
* Tile Sets are represented by #OVCCTileSet objects.
*
* A Tile Set is created with ovcc_tileset_new() and freed using
* ovcc_tileset_unref(). They can be loaded from XML definitions with
* ovcc_tileset_load();
* Adding a tile to a Tile Set is done using ovcc_tileset_add(),
* removing one is done using ovcc_tileset_remove(), and removing all tiles from
* TileSets can be loaded from XML definitions with load() or
* from memory with load_from_string();
* Adding a tile to a Tile Set is done using add(),
* removing one is done using remove(), and removing all tiles from
* a set is done using ovcc_tileset_clear().
*
* =Simple example showing the load of a Tile Set from an URI=
*
* {{{
* #include <glib.h>
* #include <gio/gio.h>
* #include "tileset.h"
*
* OVCCTileSet *
* load_our_tileset (const gchar *uri,
* OVCCTilesDef *available_tiles)
* {
* OVCCTileSet *set;
* GFile *file;
* GError *err = NULL;
*
* file = g_file_new_for_uri (uri);
* set = ovcc_tileset_new ();
* if (! ovcc_tileset_load (set, available_tiles, file, &err)) {
* g_critical ("Failed to load Tile Set: %s", err->message);
* g_error_free (err);
* // Return NULL if the tile set cannot be loaded
* ovcc_tileset_unref (set), set = NULL;
* }
* g_object_unref (file);
*
* return set;
* }
* }}}
*
* =Example of a tileset XML file=
*
* {{{
......
......@@ -464,7 +464,6 @@ namespace OVCCClient
throws ServerError, IOError
requires (connection != null)
{
/* FIXME load right tileset and do something with stack... */
TilesDef tiles = new TilesDef ();
TileSet tileset = new TileSet ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment