Advertisement
Guest User

Untitled

a guest
Nov 10th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.93 KB | None | 0 0
  1. /// This file has been generated, if you wish to
  2. /// modify it in a permanent way, please refer
  3. /// to the script file : gen/generator_c.rb
  4.  
  5. #ifndef INTERFACE_HH_
  6. # define INTERFACE_HH_
  7.  
  8. # include <vector>
  9. # include <string>
  10.  
  11. extern "C" {
  12. # include "prologin.h"
  13. }
  14.  
  15. /// Position on the TicTacToe board
  16. typedef struct __internal__cxx__position {
  17.   int x;
  18.   int y;
  19. } __internal__cxx__position;
  20.  
  21. /// Play at the given position
  22. extern "C" error api_play(__internal__cxx__position pos);
  23.  
  24. /// Returns your team number
  25. extern "C" int api_my_team(void);
  26.  
  27. /// Returns the TicTacToe board
  28. extern "C" std::vector<int> api_board(void);
  29.  
  30. /// Cancels the last played action
  31. extern "C" bool api_cancel(void);
  32.  
  33. /// Affiche le contenu d'une valeur de type error
  34. extern "C" void api_afficher_error(error v);
  35.  
  36. /// Affiche le contenu d'une valeur de type position
  37. extern "C" void api_afficher_position(__internal__cxx__position v);
  38.  
  39. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement