| 1 | /*************************************************************************** |
| 2 | exit.h - description |
| 3 | ------------------- |
| 4 | begin : Sat Oct 21 2000 |
| 5 | copyright : (C) 2000 by Waldemar Baraldi |
| 6 | email : [email protected] |
| 7 | ***************************************************************************/ |
| 8 | |
| 9 | /*************************************************************************** |
| 10 | * * |
| 11 | * This program is free software; you can redistribute it and/or modify * |
| 12 | * it under the terms of the GNU General Public License as published by * |
| 13 | * the Free Software Foundation; either version 2 of the License, or * |
| 14 | * (at your option) any later version. * |
| 15 | * * |
| 16 | ***************************************************************************/ |
| 17 | |
| 18 | #ifndef EXIT_H |
| 19 | #define EXIT_H |
| 20 | |
| 21 | #include "pipe.h" |
| 22 | |
| 23 | class Exit: public Pipe{ |
| 24 | |
| 25 | public: |
| 26 | |
| 27 | Exit(CardinalPoint connection); |
| 28 | ~Exit(); |
| 29 | |
| 30 | bool isRemovable(); |
| 31 | |
| 32 | bool hasConnection(CardinalPoint con); |
| 33 | |
| 34 | CardinalPoint getOutput(CardinalPoint input); |
| 35 | |
| 36 | void restrictAsOutput(CardinalPoint con){}; |
| 37 | |
| 38 | bool isRestrictedAsOutput(CardinalPoint con){return false;}; |
| 39 | |
| 40 | void incFullLevel(CardinalPoint input,unsigned int amount); |
| 41 | |
| 42 | int getFullLevel(CardinalPoint input); |
| 43 | |
| 44 | Pointer * getPointer(); |
| 45 | |
| 46 | void paint(VideoManager * vm); |
| 47 | |
| 48 | protected: |
| 49 | |
| 50 | CardinalPoint con; |
| 51 | }; |
| 52 | |
| 53 | #endif |
| 54 |