git.ucc.asn.au
/
progcomp10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Work towards C SDK (#11). Frenchie is still broken.
[progcomp10.git]
/
src
/
link
/
C
/
c_link.h
diff --git
a/src/link/C/c_link.h
b/src/link/C/c_link.h
index
84e9bce
..
44922a3
100644
(file)
--- a/
src/link/C/c_link.h
+++ b/
src/link/C/c_link.h
@@
-38,14
+38,19
@@
typedef struct {
the agent and supervisor)
*/
the agent and supervisor)
*/
-#define debugmsg(x...) sprintf(stderr, x)
+#define debugmsg(x...) fprintf(stderr, x)
+
+/* A (hopefully) unique identifier for this particular instance of your agent,
+ to help with debugging */
+int me;
+
/* Returns a random item */
ITEMTYPE RandomAttack();
/* A useful translation table
/* Returns a random item */
ITEMTYPE RandomAttack();
/* A useful translation table
- eg
printf
( "I use %s.\n", ITEMNAMES[rock] ); */
+ eg
debugmsg
( "I use %s.\n", ITEMNAMES[rock] ); */
extern char ITEMNAMES[3][MAXITEMLEN];
extern char ITEMNAMES[3][MAXITEMLEN];
UCC
git Repository :: git.ucc.asn.au