9826
|
1 |
/* $Id$ */
|
|
2 |
|
|
3 |
/** @file news_func.h Functions related to news. */
|
|
4 |
|
|
5 |
#ifndef NEWS_FUNC_H
|
|
6 |
#define NEWS_FUNC_H
|
|
7 |
|
|
8 |
#include "news_type.h"
|
|
9 |
#include "vehicle_type.h"
|
|
10 |
|
|
11 |
void AddNewsItem(StringID string, NewsMode mode, NewsFlag flag, NewsType type, NewsCallback callback, uint data_a, uint data_b);
|
|
12 |
void NewsLoop();
|
|
13 |
void DrawNewsBorder(const Window *w);
|
|
14 |
void InitNewsItemStructs();
|
|
15 |
|
|
16 |
extern NewsItem _statusbar_news_item;
|
|
17 |
extern uint32 _news_display_opt;
|
|
18 |
extern bool _news_ticker_sound;
|
|
19 |
|
|
20 |
extern const char *_news_display_name[NT_END];
|
|
21 |
|
|
22 |
/**
|
|
23 |
* Delete a news item type about a vehicle
|
|
24 |
* if the news item type is INVALID_STRING_ID all news about the vehicle get
|
|
25 |
* deleted
|
|
26 |
*/
|
|
27 |
void DeleteVehicleNews(VehicleID, StringID news);
|
|
28 |
|
|
29 |
#endif /* NEWS_FUNC_H */
|