]> 4ch.mooo.com Git - 16.git/blob - 16/tweak16/TESTPAT.HPP
added tweak16 for experiments
[16.git] / 16 / tweak16 / TESTPAT.HPP
1 /*\r
2         TestPat.hpp version 1.0\r
3         by Robert Schmidt of Ztiff Zox Softwear 1993\r
4 \r
5         Declares the TestPatterns class which is further defined in\r
6                 TestPat.cpp.\r
7 */\r
8 \r
9 #ifndef _TestPat_HPP\r
10 #define _TestPat_HPP\r
11 \r
12 #include <stdlib.h>\r
13 #include "RegTable.HPP"\r
14 \r
15 class TestPatterns\r
16         {\r
17 public:\r
18         // testType declares the possible types of screen patterns to test your\r
19         //      wonderful modes with.  Note that 'tests' is there just to provide a\r
20         //      constant equaling the number of tests.\r
21         enum testType\r
22                 { autoDetect, testText16, testText8, test4x16, test1x256,\r
23                   test4x256, tests };\r
24 private:\r
25         static char *string[tests];\r
26         testType testNo;\r
27 public:\r
28         TestPatterns(testType t=autoDetect) { testNo = t; }\r
29         testType operator++()   { if (++testNo==tests) testNo=testType(0);\r
30                                                           return testNo; }\r
31         testType operator--()   { if (--testNo<testType(0)) testNo=tests-1;\r
32                                                           return testNo; }\r
33         testType getTest()              { return testNo; }\r
34         void run(RegisterTable &);\r
35         void tellTest();\r
36         };\r
37 \r
38 #endif