home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 11 Learning / 04 Mommersteeg / Tennis / TennisPredictor.h < prev   
Encoding:
C/C++ Source or Header  |  2001-09-23  |  1.7 KB  |  38 lines

  1. //----------------------------------------------------------------------------------------------
  2. // Sequential Prediction Demo: The positioning pattern
  3. // 
  4. // Author:  Fri Mommersteeg
  5. // Date:    10-09-2001
  6. // File:    TennisPredictor.h
  7. //----------------------------------------------------------------------------------------------
  8.  
  9. //----------------------------------------------------------------------------------------------
  10. // This predictor is a standard string-matching predictor which can export its window contents. 
  11. // The AI bot uses this to paint some additional information on the screen (to show how the 
  12. // sequential prediction works internally).
  13. //----------------------------------------------------------------------------------------------
  14.  
  15. #ifndef __TENNISPREDICTOR_H
  16. #define __TENNISPREDICTOR_H
  17.  
  18. //----------------------------------------------------------------------------------------------
  19. // Include files
  20. //----------------------------------------------------------------------------------------------
  21.  
  22. #include "stringmatchpredictor.h"
  23.  
  24. //----------------------------------------------------------------------------------------------
  25. // CTennisPredictor: string-matching predictor that can export its internal window
  26. //----------------------------------------------------------------------------------------------
  27.  
  28. class CTennisPredictor : public CStringMatchPredictor {
  29. public:
  30.     int                        GetWindowSize();
  31.     int                        GetWindowEntry(int i);
  32.     int                        GetMaxMatchSize();
  33.     int                        GetMaxMatchPosition();
  34. };
  35.  
  36. //----------------------------------------------------------------------------------------------
  37. #endif // __TENNISPREDICTOR_H
  38.