OpenRCT2/src/management/research.h

58 lines
1.6 KiB
C
Raw Normal View History

2014-10-05 16:23:52 +02:00
/*****************************************************************************
* Copyright (c) 2014 Ted John
* 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 <http://www.gnu.org/licenses/>.
*****************************************************************************/
#ifndef _RESEARCH_H_
#define _RESEARCH_H_
#include "../common.h"
2014-10-08 00:42:17 +02:00
typedef struct {
// Bit 16 (0: scenery entry, 1: ride entry)
sint32 entryIndex;
uint8 category;
} rct_research_item;
#define RESEARCHED_ITEMS_SEPERATOR -1
#define RESEARCHED_ITEMS_END -2
#define RESEARCHED_ITEMS_END_2 -3
2014-10-08 00:42:17 +02:00
enum {
RESEARCH_FUNDING_NONE,
RESEARCH_FUNDING_MINIMUM,
RESEARCH_FUNDING_NORMAL,
RESEARCH_FUNDING_MAXIMUM
};
2014-10-05 16:23:52 +02:00
enum {
RESEARCH_STAGE_INITIAL_RESEARCH,
RESEARCH_STAGE_DESIGNING,
RESEARCH_STAGE_COMPLETING_DESIGN,
RESEARCH_STAGE_UNKNOWN
};
2014-10-08 00:42:17 +02:00
extern rct_research_item *gResearchItems;
extern uint8 gResearchUncompletedCategories;
void research_reset_items();
void research_update_uncompleted_types();
2014-10-05 16:23:52 +02:00
void research_update();
2014-11-01 01:13:15 +01:00
void sub_684AC3();
2014-10-05 16:23:52 +02:00
#endif