/***************************************************************************** * Copyright (c) 2014 Ted John, Peter Hill * OpenRCT2, an open source clone of Roller Coaster Tycoon 2. * * This file is part of OpenRCT2. * * OpenRCT2 is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . *****************************************************************************/ #ifndef _NEWS_ITEM_H_ #define _NEWS_ITEM_H_ #include "rct2.h" #include "map.h" #include "string_ids.h" enum { NEWS_ITEM_NULL, NEWS_ITEM_RIDE, NEWS_ITEM_PEEP_ON_RIDE, NEWS_ITEM_PEEP, NEWS_ITEM_MONEY, NEWS_ITEM_BLANK, NEWS_ITEM_RESEARCH, NEWS_ITEM_PEEPS, NEWS_ITEM_AWARD, NEWS_ITEM_GRAPH }; /** * News item structure. * size: 0x10C */ typedef struct { uint8 type; // 0x00 uint8 flags; // 0x01 uint32 assoc; // 0x02 uint16 ticks; // 0x06 uint16 month_year; // 0x08 uint8 day; // 0x0A uint8 pad_0B; // 0x0B uint8 colour; // 0x0C char text[255]; // 0x0D } rct_news_item; void news_item_init_queue(); void news_item_update_current(); void news_item_close_current(); void news_item_get_subject_location(int type, int subject, int *x, int *y, int *z); void news_item_add_to_queue(uint8 type, rct_string_id string_id, uint32 assoc); void news_item_open_subject(int type, int subject); #endif