diff options
author | rubidium <rubidium@openttd.org> | 2008-03-28 08:53:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-03-28 08:53:36 +0000 |
commit | eeabab4555bf20ea9769bfea05c1fc278a493fa3 (patch) | |
tree | 6ac53730ac3371086562388c2590d8323adb6b80 /src/news_func.h | |
parent | d8cfb4f064d5492770d3325ef6e288b630e34e7c (diff) | |
download | openttd-eeabab4555bf20ea9769bfea05c1fc278a493fa3.tar.xz |
(svn r12459) -Codechange: split news.h into news_type.h and news_func.h.
Diffstat (limited to 'src/news_func.h')
-rw-r--r-- | src/news_func.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/news_func.h b/src/news_func.h new file mode 100644 index 000000000..97797db88 --- /dev/null +++ b/src/news_func.h @@ -0,0 +1,29 @@ +/* $Id$ */ + +/** @file news_func.h Functions related to news. */ + +#ifndef NEWS_FUNC_H +#define NEWS_FUNC_H + +#include "news_type.h" +#include "vehicle_type.h" + +void AddNewsItem(StringID string, NewsMode mode, NewsFlag flag, NewsType type, NewsCallback callback, uint data_a, uint data_b); +void NewsLoop(); +void DrawNewsBorder(const Window *w); +void InitNewsItemStructs(); + +extern NewsItem _statusbar_news_item; +extern uint32 _news_display_opt; +extern bool _news_ticker_sound; + +extern const char *_news_display_name[NT_END]; + +/** + * Delete a news item type about a vehicle + * if the news item type is INVALID_STRING_ID all news about the vehicle get + * deleted + */ +void DeleteVehicleNews(VehicleID, StringID news); + +#endif /* NEWS_FUNC_H */ |