2016-05-04 19:24:41 +02:00
|
|
|
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
|
2014-10-10 23:50:22 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
|
|
|
*
|
2016-05-04 19:24:41 +02:00
|
|
|
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
|
|
|
|
* For more information, visit https://github.com/OpenRCT2/OpenRCT2
|
2014-10-10 23:50:22 +02:00
|
|
|
*
|
|
|
|
* 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.
|
2016-05-04 19:24:41 +02:00
|
|
|
*
|
|
|
|
* A full copy of the GNU General Public License can be found in licence.txt
|
2014-10-10 23:50:22 +02:00
|
|
|
*****************************************************************************/
|
2016-05-04 19:24:41 +02:00
|
|
|
#pragma endregion
|
2014-10-10 23:50:22 +02:00
|
|
|
|
|
|
|
#ifndef _BANNER_H_
|
|
|
|
#define _BANNER_H_
|
|
|
|
|
|
|
|
#include "../common.h"
|
2015-07-06 18:59:37 +02:00
|
|
|
#include "../world/map.h"
|
2014-10-10 23:50:22 +02:00
|
|
|
|
2015-02-13 21:55:49 +01:00
|
|
|
#define BANNER_NULL 255
|
2014-10-10 23:50:22 +02:00
|
|
|
#define MAX_BANNERS 250
|
|
|
|
|
2016-05-12 23:57:40 +02:00
|
|
|
typedef struct rct_banner {
|
2014-11-05 17:14:12 +01:00
|
|
|
uint8 type;
|
2014-11-01 16:32:29 +01:00
|
|
|
uint8 flags; //0x01 bit 0 is no entry
|
2014-10-21 18:59:47 +02:00
|
|
|
rct_string_id string_idx; //0x02
|
|
|
|
uint8 colour; //0x04
|
|
|
|
uint8 text_colour; //0x05
|
|
|
|
uint8 x; //0x06
|
|
|
|
uint8 y; //0x07
|
2014-10-10 23:50:22 +02:00
|
|
|
} rct_banner;
|
|
|
|
|
2014-10-21 18:59:47 +02:00
|
|
|
enum{
|
2014-11-24 03:58:48 +01:00
|
|
|
BANNER_FLAG_NO_ENTRY = (1 << 0),
|
2015-06-14 13:56:12 +02:00
|
|
|
BANNER_FLAG_1 = (1 << 1),
|
2014-11-24 03:58:48 +01:00
|
|
|
BANNER_FLAG_2 = (1 << 2)
|
2015-12-16 21:48:27 +01:00
|
|
|
};
|
2014-10-21 18:59:47 +02:00
|
|
|
|
2014-10-10 23:50:22 +02:00
|
|
|
extern rct_banner *gBanners;
|
|
|
|
|
2015-02-18 04:40:54 +01:00
|
|
|
void banner_init();
|
2015-04-23 18:36:31 +02:00
|
|
|
int create_new_banner(uint8 flags);
|
2015-07-06 18:59:37 +02:00
|
|
|
rct_map_element *banner_get_map_element(int bannerIndex);
|
2015-07-11 21:24:27 +02:00
|
|
|
int banner_get_closest_ride_index(int x, int y, int z);
|
2015-08-27 17:24:23 +02:00
|
|
|
void fix_banner_count();
|
2015-02-18 04:40:54 +01:00
|
|
|
|
2014-10-10 23:50:22 +02:00
|
|
|
#endif
|