home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / demos / ttt / build / piece.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-31  |  528 b   |  31 lines

  1. // ---------- piece.h
  2.  
  3. #ifndef PIECE_H
  4. #define PIECE_H
  5.  
  6. #include <theatrix.h>
  7.  
  8. class TicTacToe;
  9.  
  10. class Piece : public Performer    {
  11.     static int XYs[][2];
  12.     void initialize()
  13.         { load_gfxlib("ttt.gfx"); }
  14.     TicTacToe *board;
  15. public:
  16.     Piece(Director *dir) : Performer(dir), board((TicTacToe*)dir)
  17.         { }
  18.     void placemarker(int square, int piece);
  19.     void drawline(int i);
  20. };
  21.  
  22. const int lfx = 75;
  23. const int mdx = 145;
  24. const int btx = 213;
  25. const int tpy = 21;
  26. const int mdy = 87;
  27. const int bty = 159;
  28.  
  29. #endif
  30.  
  31.