news_func.h File Reference

Functions related to news. More...

#include "news_type.h"
#include "vehicle_type.h"
#include "station_type.h"

Go to the source code of this file.

Functions

void AddNewsItem (StringID string, NewsSubtype subtype, uint data_a, uint data_b, void *free_data=NULL)
 Add a new newsitem to be shown.
void NewsLoop ()
void InitNewsItemStructs ()
 Initialize the news-items data structures.
void DeleteVehicleNews (VehicleID, StringID news)
 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 DeleteStationNews (StationID)
 Delete news associated with given station.

Variables

NewsItem _statusbar_news_item
bool _news_ticker_sound
NewsTypeData _news_type_data [NT_END]
 Per-NewsType data.


Detailed Description

Functions related to news.

Definition in file news_func.h.


Function Documentation

void AddNewsItem ( StringID  string,
NewsSubtype  subtype,
uint  data_a,
uint  data_b,
void *  free_data 
)

void DeleteStationNews ( StationID  sid  ) 

Delete news associated with given station.

Delete news associated with given station.

Parameters:
sid station to remove news about

Definition at line 581 of file news_gui.cpp.

References _oldest_news, DeleteNewsItem(), NS_ACCEPTANCE, NS_ARRIVAL_COMPANY, and NS_ARRIVAL_OTHER.

Referenced by Station::~Station().


Generated on Mon May 11 15:48:13 2009 for OpenTTD by  doxygen 1.5.6