| 1e01a22 by Enrico Ros at 2009-02-21 |
1 |
/*************************************************************************** |
| 0e5745d by Enrico Ros at 2009-05-31 |
2 |
* Copyright (c) 2009 Enrico Ros * |
|
3 |
* 2009 Enrico Ros <enrico.ros@email.it> * |
|
4 |
* 2009 Alberto Scarpa <skaal.sl@gmail.com> * |
| 1e01a22 by Enrico Ros at 2009-02-21 |
5 |
* * |
|
6 |
* Permission is hereby granted, free of charge, to any person * |
|
7 |
* obtaining a copy of this software and associated documentation * |
|
8 |
* files (the "Software"), to deal in the Software without * |
|
9 |
* restriction, including without limitation the rights to use, * |
|
10 |
* copy, modify, merge, publish, distribute, sublicense, and/or sell * |
|
11 |
* copies of the Software, and to permit persons to whom the * |
|
12 |
* Software is furnished to do so, subject to the following * |
|
13 |
* conditions: * |
|
14 |
* * |
|
15 |
* The above copyright notice and this permission notice shall be * |
|
16 |
* included in all copies or substantial portions of the Software. * |
|
17 |
* * |
|
18 |
***************************************************************************/ |
|
19 |
|
| e45848b by Enrico Ros at 2009-05-31 |
20 |
#ifndef __WCGame_h__ |
|
21 |
#define __WCGame_h__ |
| 1e01a22 by Enrico Ros at 2009-02-21 |
22 |
|
| e45848b by Enrico Ros at 2009-05-31 |
23 |
#include "AbstractGame.h" |
| 7ee4d03 by Enrico Ros at 2009-02-25 |
24 |
#include <QTime> |
| 023fc63 by Alberto Scarpa at 2009-02-21 |
25 |
class Scrambler; |
| 1e01a22 by Enrico Ros at 2009-02-21 |
26 |
|
| e45848b by Enrico Ros at 2009-05-31 |
27 |
class WCGame : public AbstractGame |
| 1e01a22 by Enrico Ros at 2009-02-21 |
28 |
{ |
|
29 |
public: |
| e45848b by Enrico Ros at 2009-05-31 |
30 |
WCGame( QObject * parent ); |
|
31 |
~WCGame(); |
|
32 |
|
|
33 |
// ::AbstractGame |
|
34 |
QPixmap highlightPixmap( const QPixmap & pixmap ) const; |
|
35 |
void train( Ocr * ocr, QString lettersText, const QImage & gamePixmap ) const; |
|
36 |
void run( Ui::AppWidgetClass * ui, const ScreenCapture * capture, const Ocr * ocr ); |
| 1e01a22 by Enrico Ros at 2009-02-21 |
37 |
|
|
38 |
Q_SIGNALS: |
|
39 |
void gameEnded(); |
|
40 |
|
|
41 |
private: |
| 7e4e8a8 by Enrico Ros at 2009-06-03 |
42 |
Scrambler * m_wordsDictionary; |
|
43 |
Scrambler * m_namesDictionary; |
| 7ee4d03 by Enrico Ros at 2009-02-25 |
44 |
QTime m_time; |
| 1e01a22 by Enrico Ros at 2009-02-21 |
45 |
}; |
|
46 |
|
| e45848b by Enrico Ros at 2009-05-31 |
47 |
#endif |