Files @ r10339:4919afdcae3e
Branch filter:

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

translators
(svn r14590) -Update: WebTranslator2 update to 2008-11-18 18:44:24
catalan - 2 fixed by arnaullv (2)
czech - 3 fixed by miris2009 (3)
danish - 7 fixed by Hatsen (7)
finnish - 6 fixed by SuomiPoika (6)
hungarian - 41 fixed, 121 changed by oklmernok (162)
korean - 2 fixed, 9 changed by dlunch (11)
lithuanian - 30 fixed by BlinK_ (30)
polish - 30 fixed by coolik (30)
slovak - 2 fixed by James (2)
/* $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 */