Files @ r11248:2c32f6c048c3
Branch filter:

Location: cpp/openttd-patchpack/source/src/news_func.h

translators
(svn r15602) -Update: WebTranslator2 update to 2009-03-03 18:40:15
brazilian_portuguese - 1 fixed by tucalipe (1)
dutch - 1 fixed by habell (1)
german - 1 fixed, 12 changed by planetmaker (13)
hungarian - 1 fixed by alyr (1)
indonesian - 1 fixed by fanioz (1)
persian - 102 fixed by ali sattari (102)
spanish - 1 fixed by eusebio (1)
/* $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"
#include "station_type.h"

void AddNewsItem(StringID string, NewsSubtype subtype, uint data_a, uint data_b, void *free_data = NULL);
void NewsLoop();
void InitNewsItemStructs();

extern NewsItem _statusbar_news_item;
extern bool _news_ticker_sound;

extern NewsTypeData _news_type_data[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);

/** Delete news associated with given station */
void DeleteStationNews(StationID);

#endif /* NEWS_FUNC_H */