5 * Created by Daniel Axtens on 20/04/10.
\r
6 * Licensed under an MIT-style license: see the LICENSE file for details.
\r
12 void * Initialise( char * me ) {
\r
16 /* Implement the angel bot, which always tells the truth
\r
17 and expects others to do the same */
\r
19 ATTACKTYPE Attack( void * this, char * foe_name ) {
\r
22 attack.realAttack = RandomAttack(); /* Chooses randomly from Rock, Paper, Scissors */
\r
23 attack.promisedAttack = attack.realAttack; /* Tells the truth for its bluff */
\r
28 ITEMTYPE Defend( void * this, char * foeName, ITEMTYPE foePromisedAttack ) {
\r
29 return foePromisedAttack; /* Trusts them to be going for a tie */
\r
32 /* You need to define a results function, even if it isn't used
\r
33 (otherwise the linker will complain) */
\r
34 void Results( void * this, char * foeName, int isInstigatedByYou, RESULTTYPE winner,
\r
35 ITEMTYPE attItem, ITEMTYPE defItem, ITEMTYPE bluffItem,
\r
38 return; /* Ignore whatever just happened. */
\r
41 /* same for Cleanup() */
\r
43 void Cleanup( void * this ) {
\r