| | 1 | #ifndef FROBTADSAPPPLAIN_H |
| | 2 | #define FROBTADSAPPPLAIN_H |
| | 3 | |
| | 4 | #include "common.h" |
| | 5 | |
| | 6 | #include "frobtadsapp.h" |
| | 7 | |
| | 8 | |
| | 9 | class FrobTadsApplicationPlain: public FrobTadsApplication { |
| | 10 | public: |
| | 11 | FrobTadsApplicationPlain( const FrobOptions& opts ) |
| | 12 | : FrobTadsApplication(opts) |
| | 13 | { |
| | 14 | // Just tell the osgen layer to use plain mode. |
| | 15 | os_plain(); |
| | 16 | } |
| | 17 | |
| | 18 | |
| | 19 | /* ============================================================ |
| | 20 | * Interface implementation. |
| | 21 | * ============================================================ |
| | 22 | */ |
| | 23 | protected: |
| | 24 | virtual void |
| | 25 | init() |
| | 26 | { } |
| | 27 | |
| | 28 | virtual void |
| | 29 | resizeEvent() |
| | 30 | { } |
| | 31 | |
| | 32 | public: |
| | 33 | virtual void |
| | 34 | moveCursor( int, int ) |
| | 35 | { } |
| | 36 | |
| | 37 | virtual void |
| | 38 | print( int, int, int, const char* str ) |
| | 39 | { printf("%s", str); } |
| | 40 | |
| | 41 | virtual void |
| | 42 | flush() |
| | 43 | { } |
| | 44 | |
| | 45 | virtual void |
| | 46 | clear( int, int, int, int, int ) |
| | 47 | { } |
| | 48 | |
| | 49 | virtual void |
| | 50 | scrollRegionUp( int, int, int, int, int ) |
| | 51 | { } |
| | 52 | |
| | 53 | virtual void |
| | 54 | scrollRegionDown( int, int, int, int, int ) |
| | 55 | { } |
| | 56 | |
| | 57 | virtual int |
| | 58 | getRawChar( bool, int ) |
| | 59 | { return getchar(); } |
| | 60 | |
| | 61 | virtual void |
| | 62 | sleep( int ) |
| | 63 | { } |
| | 64 | |
| | 65 | virtual int |
| | 66 | height() const |
| | 67 | { return 25; } |
| | 68 | |
| | 69 | virtual int |
| | 70 | width() const |
| | 71 | { return 80; } |
| | 72 | }; |
| | 73 | |
| | 74 | #endif // FROBTADSAPPPLAIN_H |