OpenRCT2/src/ride/track_paint.h

69 lines
3.2 KiB
C
Raw Normal View History

#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
/*****************************************************************************
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
*
* 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
*
* 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.
*
* A full copy of the GNU General Public License can be found in licence.txt
*****************************************************************************/
#pragma endregion
#ifndef _TRACK_PAINT_H
#define _TRACK_PAINT_H
#include "../common.h"
#include "../world/map.h"
#include "../paint/map_element/map_element.h"
2016-05-17 23:04:37 +02:00
extern const uint8 track_map_2x2[][4];
extern const uint8 edges_2x2[];
2016-05-17 20:29:45 +02:00
2016-05-17 23:04:37 +02:00
extern const uint8 track_map_3x3[][9];
extern const uint8 edges_3x3[];
2016-05-17 19:48:28 +02:00
2016-05-17 23:08:55 +02:00
extern const uint8 track_map_4x4[][16];
2016-05-17 23:04:37 +02:00
extern const uint8 edges_4x4[];
2016-05-17 20:50:29 +02:00
2016-05-17 19:48:28 +02:00
enum {
SPR_FLOOR_CORK_SE_SW = 22134,
SPR_FLOOR_CORK_SW = 22135,
SPR_FLOOR_CORK_SE = 22136,
SPR_FLOOR_CORK = 22137,
SPR_FENCE_ROPE_NE = 22138,
SPR_FENCE_ROPE_SE = 22139,
SPR_FENCE_ROPE_SW = 22140,
SPR_FENCE_ROPE_NW = 22141,
};
2016-05-17 23:08:55 +02:00
extern const uint32 floorSpritesCork[];
2016-05-17 19:48:28 +02:00
2016-05-17 23:08:55 +02:00
extern const uint32 fenceSpritesRope[];
2016-05-17 19:48:28 +02:00
bool track_paint_util_has_fence(enum edge edge, rct_xy16 position, rct_map_element * mapElement, rct_ride * ride, uint8 rotation);
2016-05-17 23:08:55 +02:00
void track_paint_util_paint_floor(uint8 edges, uint32 colourFlags, uint16 height, const uint32 floorSprites[4], uint8 rotation);
void track_paint_util_paint_fences(uint8 edges, rct_xy16 position, rct_map_element * mapElement, rct_ride * ride, uint32 colourFlags, uint16 height, const uint32 fenceSprites[4], uint8 rotation);
typedef void (*TRACK_PAINT_FUNCTION)(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element* mapElement);
typedef TRACK_PAINT_FUNCTION (*TRACK_PAINT_FUNCTION_GETTER)(int trackType, int direction);
2016-03-25 14:54:28 +01:00
TRACK_PAINT_FUNCTION get_track_paint_function_maze(int trackType, int direction);
2016-03-24 21:52:32 +01:00
TRACK_PAINT_FUNCTION get_track_paint_function_spiral_slide(int trackType, int direction);
2016-03-25 15:43:03 +01:00
TRACK_PAINT_FUNCTION get_track_paint_function_dodgems(int trackType, int direction);
2016-05-18 19:18:05 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_3d_cinema(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_topspin(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_shop(int trackType, int direction);
2016-05-18 21:48:05 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_merry_go_round(int trackType, int direction);
TRACK_PAINT_FUNCTION get_track_paint_function_facility(int trackType, int direction);
2016-05-18 19:16:37 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_circus_show(int trackType, int direction);
2016-05-18 21:47:56 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_flying_saucers(int trackType, int direction);
2016-04-11 15:21:13 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_crooked_house(int trackType, int direction);
2016-05-09 08:44:07 +02:00
TRACK_PAINT_FUNCTION get_track_paint_function_submarine_ride(int trackType, int direction);
2015-12-21 05:03:37 +01:00
#endif