home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / share / Os2 / JUEGOS / BOGGLE / SOURCE.ZIP / square.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-02  |  1.6 KB  |  68 lines

  1. #ifndef  BOGSQUARE_H
  2. #define  BOGSQUARE_H
  3.  
  4. #include  "bogwin.hpp"
  5. #include  "lastsq.hpp"
  6. #include  "wip.hpp"
  7. #include  "wlist.hpp"
  8. #include  "score.hpp"
  9. #include  "sound.hpp"
  10. #include  "ammvehdr.hpp"
  11. #include  <ibmpctl.hpp>
  12.  
  13. class TBogSquare;
  14.  
  15. class TBogSquare : public IBitmapControl, public ICommandHandler, 
  16.                    public IPaintHandler, public IMouseHandler,
  17.                    public AMouseMoveHandler
  18. {
  19.  private:
  20.    TBogWindow    *pbwindow; 
  21.    TBogBoard     *pbboard;
  22.    TBogWIP       *pbwip;
  23.    LastSquare    *PBLastSquare;
  24.    TBogWordList  *pblist;
  25.    TBogScore     *pbscore; 
  26.    Sound         *psound;
  27.  
  28.    IFont   myfont;
  29.    char    Letter[3];
  30.    Boolean HiLite;
  31.    int     rowid, colid;
  32.    IColor::Color selectedColor;
  33.    IColor *normalColor;
  34.  
  35.   protected :
  36.    
  37.    virtual Boolean 
  38.       paintWindow(IPaintEvent &event),
  39.       mouseClicked(IMouseClickEvent &event),
  40.       motion( IEvent &evt );
  41.  
  42.      void clearBoard();
  43.  
  44.  
  45.   public :
  46.    TBogSquare (unsigned long id,
  47.                IWindow* parent,
  48.                char* letter, 
  49.                TBogWindow* PBWindow,
  50.                TBogBoard* PBBoard,
  51.                LastSquare* PBLastSquare,
  52.                TBogWIP* PBWIP,
  53.                TBogWordList* PBList,
  54.                TBogScore* PBScore,
  55.                Sound* pSound, 
  56.                int row, int col,
  57.                const IRectangle& initial= IRectangle());
  58.    ~TBogSquare();
  59.  
  60.     void button1Down();
  61.     void button1Up();
  62.     void button2Down();
  63.     void setSquareText(char *SquareLetter);
  64.     void reset();
  65. } ;
  66. #endif
  67.  
  68.