src/news_func.h
author translators
Thu, 04 Dec 2008 18:47:20 +0000
changeset 10404 ea3784c0b3dd
parent 10123 f73d96619303
permissions -rw-r--r--
(svn r14655) -Update: WebTranslator2 update to 2008-12-04 18:47:16
croatian - 61 fixed by knovak (61)
hebrew - 192 fixed by davidx123 (192)
hungarian - 1 changed by IPG (1)
indonesian - 165 fixed, 6 changed by fanioz (121), dnaftali (50)
malay - 182 fixed, 1 changed by tombakemas (104), Syed (79)
/* $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 */