Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// This file has been generated, if you wish to
- /// modify it in a permanent way, please refer
- /// to the script file : gen/generator_c.rb
- #ifndef INTERFACE_HH_
- # define INTERFACE_HH_
- # include <vector>
- # include <string>
- extern "C" {
- # include "prologin.h"
- }
- /// Position on the TicTacToe board
- typedef struct __internal__cxx__position {
- int x;
- int y;
- } __internal__cxx__position;
- /// Play at the given position
- extern "C" error api_play(__internal__cxx__position pos);
- /// Returns your team number
- extern "C" int api_my_team(void);
- /// Returns the TicTacToe board
- extern "C" std::vector<int> api_board(void);
- /// Cancels the last played action
- extern "C" bool api_cancel(void);
- /// Affiche le contenu d'une valeur de type error
- extern "C" void api_afficher_error(error v);
- /// Affiche le contenu d'une valeur de type position
- extern "C" void api_afficher_position(__internal__cxx__position v);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement