Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Open Virtual Carcassonne Clone
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ovcc
Open Virtual Carcassonne Clone
Commits
544aa2be
Commit
544aa2be
authored
May 17, 2019
by
Jonathan Michalon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup 3 forgotten/easy FIXMEs
parent
7f24d557
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
42 deletions
+7
-42
clients/bot/src/main.vala
clients/bot/src/main.vala
+0
-1
libovcc/src/ovcc-tile-set.vala
libovcc/src/ovcc-tile-set.vala
+7
-40
libovccclient/src/ovccclient-server.vala
libovccclient/src/ovccclient-server.vala
+0
-1
No files found.
clients/bot/src/main.vala
View file @
544aa2be
...
@@ -103,7 +103,6 @@ public class Bot : OVCCClient.Client
...
@@ -103,7 +103,6 @@ public class Bot : OVCCClient.Client
case
3
:
npos
.
x
--;
break
;
/* left */
case
3
:
npos
.
x
--;
break
;
/* left */
}
}
for
(
var
j
=
0
;
j
<
4
;
j
++)
{
for
(
var
j
=
0
;
j
<
4
;
j
++)
{
/* FIXME: this should probably be asynchronous... */
if
(
player
.
place_tile
(
npos
))
{
if
(
player
.
place_tile
(
npos
))
{
debug
(
"Placed tile ID %u at %d %d angle %u"
,
tile
.
id
,
debug
(
"Placed tile ID %u at %d %d angle %u"
,
tile
.
id
,
npos
.
x
,
npos
.
y
,
tile
.
rotation
);
npos
.
x
,
npos
.
y
,
tile
.
rotation
);
...
...
libovcc/src/ovcc-tile-set.vala
View file @
544aa2be
...
@@ -40,50 +40,17 @@ namespace OVCC
...
@@ -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
* This module manages
tile sets which are a list of tiles and the amount
of
* them in the set.
*
each of
them in the set.
* Tile
Sets works together with tiles definitions
to provide a set of tiles.
* Tile
Set works together with {@link Tile}
to provide a set of tiles.
*
*
* Tile Sets are represented by #OVCCTileSet objects.
* TileSets can be loaded from XML definitions with load() or
*
* from memory with load_from_string();
* A Tile Set is created with ovcc_tileset_new() and freed using
* Adding a tile to a Tile Set is done using add(),
* ovcc_tileset_unref(). They can be loaded from XML definitions with
* removing one is done using remove(), and removing all tiles from
* 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
* a set is done using ovcc_tileset_clear().
* 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=
* =Example of a tileset XML file=
*
*
* {{{
* {{{
...
...
libovccclient/src/ovccclient-server.vala
View file @
544aa2be
...
@@ -464,7 +464,6 @@ namespace OVCCClient
...
@@ -464,7 +464,6 @@ namespace OVCCClient
throws
ServerError
,
IOError
throws
ServerError
,
IOError
requires
(
connection
!=
null
)
requires
(
connection
!=
null
)
{
{
/* FIXME load right tileset and do something with stack... */
TilesDef
tiles
=
new
TilesDef
();
TilesDef
tiles
=
new
TilesDef
();
TileSet
tileset
=
new
TileSet
();
TileSet
tileset
=
new
TileSet
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment