PFC/Omweso/src/ow_player.h

00001 /***************************************************************************
00002  *   Copyright (C) 2007 by David Torres   *
00003  *   aiken669@gmail.com   *
00004  ***************************************************************************/
00005 #ifndef OW_PLAYER_H
00006 #define OW_PLAYER_H
00007 
00008 #include "ow_board.h"
00009 #include "ow_aisearch.h"
00010 
00015 class ow_player{
00016 private:
00017      ow_board *owboard;
00018      int playernum;
00019      char playername[32];
00020      int aimode, aidepth, aieval;
00021      int boardside;
00022      int sleep;
00023      ow_aisearch *aisearch;
00024      int searchfound;
00025 public:
00026      cellXY selected_cell;
00027 
00028      ow_player(ow_board *owboard,  int playernum, int boardside);
00029      int makemovement(int boardside, int cellx, int celly);
00030      int rcapture(int boardside, int cellx, int celly);
00031      ow_move searchbestmove_ai();
00032      int foundbestmove_ai();
00033      int endofturn();
00034 
00035      void gosleep();
00036      void wakeup();
00037 
00038      int getplayernum();
00039      void setplayername(const char *pname);
00040      void setplayer_aimode(int aimode);
00041      void setplayer_aidepth(int depth);
00042      void setplayer_aieval(int aieval);
00043      char *getplayername();
00044      int getboardside();
00045      int getaimode();
00046 
00047      ~ow_player();
00048 };
00049 
00050 #endif

Generated on Sun Jun 22 13:45:47 2008 for Omweso by  doxygen 1.5.3