diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2018-02-25 05:25:33 +0100 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2018-02-25 05:25:33 +0100 |
| commit | baa647ad7caf95ea2619d8456bcfd0f04a08a719 (patch) | |
| tree | 7a7f5408a8ae0cc18a70d7795a2a47af30cf59f5 /Source/Message.h | |
| parent | 81d9242514b4e8e3fe97cf7063a15680f610bf2f (diff) | |
| download | airport-baa647ad7caf95ea2619d8456bcfd0f04a08a719.tar.gz | |
+ Added Message module, used for tutorials.
+ Added first tutorial level.
* Font now inserts line feed automatically if the next word is too long to fit.
* Gfx.c: added primitive list double buffering in order to gain some performance.
* MapEditor: now airport can be defined inside the tool.
Diffstat (limited to 'Source/Message.h')
| -rw-r--r-- | Source/Message.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Source/Message.h b/Source/Message.h new file mode 100644 index 0000000..e6bbcce --- /dev/null +++ b/Source/Message.h @@ -0,0 +1,37 @@ +#ifndef MESSAGE_HEADER__ +#define MESSAGE_HEADER__ + +/* ************************************* + * Includes + * *************************************/ + +#include "Global_Inc.h" + +/* ************************************* + * Defines + * *************************************/ + +#define MAX_MESSAGE_STR_SIZE 256 + +/* ************************************* + * Structs and enums + * *************************************/ + +typedef struct t_messagedata +{ + bool used; + uint32_t Timeout; + char strMessage[MAX_MESSAGE_STR_SIZE]; +}TYPE_MESSAGE_DATA; + +/* ************************************* + * Global prototypes + * *************************************/ + +void MessageInit(void); +bool MessageCreate(TYPE_MESSAGE_DATA* ptrMessage); +void MessageHandler(void); +void MessageRender(void); +char* MessageGetString(void); + +#endif // MESSAGE_HEADER__ |
