| 1 | /* |
| 2 | * LegacyClonk |
| 3 | * |
| 4 | * Copyright (c) RedWolf Design |
| 5 | * Copyright (c) 2017-2019, The LegacyClonk Team and contributors |
| 6 | * |
| 7 | * Distributed under the terms of the ISC license; see accompanying file |
| 8 | * "COPYING" for details. |
| 9 | * |
| 10 | * "Clonk" is a registered trademark of Matthes Bender, used with permission. |
| 11 | * See accompanying file "TRADEMARK" for details. |
| 12 | * |
| 13 | * To redistribute this file separately, substitute the full license texts |
| 14 | * for the above references. |
| 15 | */ |
| 16 | |
| 17 | #pragma once |
| 18 | |
| 19 | #include <C4Facet.h> |
| 20 | |
| 21 | class C4UpperBoard |
| 22 | { |
| 23 | friend class C4GraphicsSystem; |
| 24 | |
| 25 | public: |
| 26 | enum DisplayMode : int32_t |
| 27 | { |
| 28 | Hide = 0, |
| 29 | Full = 1, |
| 30 | Small = 2, |
| 31 | Mini = 3, |
| 32 | |
| 33 | First = Hide, |
| 34 | Last = Mini |
| 35 | }; |
| 36 | |
| 37 | C4UpperBoard(); |
| 38 | ~C4UpperBoard(); |
| 39 | void Default(); |
| 40 | void Clear(); |
| 41 | void Init(C4Facet &cgo, C4Facet &messageBoardCgo); |
| 42 | void Execute(); |
| 43 | static int Height(); |
| 44 | |
| 45 | protected: |
| 46 | void Draw(C4Facet &cgo); |
| 47 | C4Facet Output; |
| 48 | char cTimeString[64]; |
| 49 | char cTimeString2[64]; |
| 50 | int TextWidth; |
| 51 | int TextYPosition; |
| 52 | }; |
| 53 | |