2014-04-02 01:31:55 +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 _GAME_H_
|
|
|
|
#define _GAME_H_
|
|
|
|
|
2014-08-06 21:06:51 +02:00
|
|
|
enum GAME_COMMAND {
|
|
|
|
GAME_COMMAND_0,
|
|
|
|
GAME_COMMAND_1,
|
|
|
|
GAME_COMMAND_TOGGLE_PAUSE, // 2
|
2014-09-02 17:52:23 +02:00
|
|
|
GAME_COMMAND_3, //Has something to do with ride construction
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_4,
|
|
|
|
GAME_COMMAND_LOAD_OR_QUIT, // 5
|
|
|
|
GAME_COMMAND_6,
|
|
|
|
GAME_COMMAND_7,
|
2014-08-07 23:25:51 +02:00
|
|
|
GAME_COMMAND_SET_RIDE_OPEN, // 8
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_9,
|
2014-09-02 15:05:44 +02:00
|
|
|
GAME_COMMAND_SET_RIDE_NAME,
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_11,
|
|
|
|
GAME_COMMAND_12,
|
|
|
|
GAME_COMMAND_13,
|
|
|
|
GAME_COMMAND_14,
|
|
|
|
GAME_COMMAND_15,
|
|
|
|
GAME_COMMAND_16,
|
2014-08-07 23:25:51 +02:00
|
|
|
GAME_COMMAND_PLACE_PATH, // 17
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_18,
|
2014-08-07 23:25:51 +02:00
|
|
|
GAME_COMMAND_REMOVE_PATH, // 19
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_20,
|
|
|
|
GAME_COMMAND_21,
|
|
|
|
GAME_COMMAND_22,
|
|
|
|
GAME_COMMAND_23,
|
|
|
|
GAME_COMMAND_24,
|
|
|
|
GAME_COMMAND_25,
|
|
|
|
GAME_COMMAND_26,
|
|
|
|
GAME_COMMAND_27,
|
|
|
|
GAME_COMMAND_28,
|
2014-08-07 23:25:51 +02:00
|
|
|
GAME_COMMAND_HIRE_NEW_STAFF_MEMBER, // 29
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_30,
|
2014-10-10 12:13:54 +02:00
|
|
|
GAME_COMMAND_FIRE_STAFF_MEMBER, // 31
|
|
|
|
GAME_COMMAND_SET_STAFF_ORDER, // 32
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_33,
|
2014-08-07 23:25:51 +02:00
|
|
|
GAME_COMMAND_SET_PARK_OPEN, // 34
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_35,
|
|
|
|
GAME_COMMAND_36,
|
|
|
|
GAME_COMMAND_37,
|
|
|
|
GAME_COMMAND_38,
|
2014-08-07 23:25:51 +02:00
|
|
|
GAME_COMMAND_SET_PARK_ENTRANCE_FEE, // 39
|
|
|
|
GAME_COMMAND_SET_STAFF_COLOUR, // 40
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_41,
|
|
|
|
GAME_COMMAND_42,
|
|
|
|
GAME_COMMAND_43,
|
|
|
|
GAME_COMMAND_44,
|
2014-08-12 23:22:16 +02:00
|
|
|
GAME_COMMAND_SET_CURRENT_LOAN, // 45
|
|
|
|
GAME_COMMAND_SET_RESEARCH_FUNDING, // 46
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_47,
|
2014-08-12 23:22:16 +02:00
|
|
|
GAME_COMMAND_START_MARKETING_CAMPAIGN, // 48
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_49,
|
|
|
|
GAME_COMMAND_50,
|
|
|
|
GAME_COMMAND_51,
|
|
|
|
GAME_COMMAND_52,
|
|
|
|
GAME_COMMAND_53,
|
|
|
|
GAME_COMMAND_54,
|
|
|
|
GAME_COMMAND_55,
|
2014-08-07 23:25:51 +02:00
|
|
|
GAME_COMMAND_56, // Set land owned (possibly does other things)
|
2014-08-06 21:06:51 +02:00
|
|
|
GAME_COMMAND_57
|
|
|
|
};
|
|
|
|
|
2014-08-20 15:48:53 +02:00
|
|
|
typedef void (GAME_COMMAND_POINTER)(int* eax, int* ebx, int* ecx, int* edx, int* esi, int* edi, int* ebp);
|
|
|
|
|
2014-08-24 19:45:47 +02:00
|
|
|
extern int gGameSpeed;
|
|
|
|
|
2014-04-11 03:42:39 +02:00
|
|
|
void game_create_windows();
|
2014-04-02 01:31:55 +02:00
|
|
|
void game_update();
|
|
|
|
void game_logic_update();
|
2014-06-21 16:50:13 +02:00
|
|
|
void sub_0x0069E9A7();
|
2014-09-23 21:33:55 +02:00
|
|
|
void update_palette_effects();
|
2014-04-02 01:31:55 +02:00
|
|
|
|
2014-05-02 03:12:14 +02:00
|
|
|
int game_do_command(int eax, int ebx, int ecx, int edx, int esi, int edi, int ebp);
|
2014-08-06 21:06:51 +02:00
|
|
|
int game_do_command_p(int command, int *eax, int *ebx, int *ecx, int *edx, int *edi, int *esi, int *ebp);
|
2014-07-21 14:05:43 +02:00
|
|
|
|
|
|
|
void game_increase_game_speed();
|
|
|
|
void game_reduce_game_speed();
|
2014-05-02 03:12:14 +02:00
|
|
|
|
2014-05-02 23:21:08 +02:00
|
|
|
void game_load_or_quit_no_save_prompt();
|
2014-09-10 20:36:11 +02:00
|
|
|
int game_load_save(const char *path);
|
2014-07-14 20:46:45 +02:00
|
|
|
void game_pause_toggle();
|
2014-05-27 23:33:16 +02:00
|
|
|
char save_game();
|
2014-07-16 22:39:39 +02:00
|
|
|
void rct2_exit();
|
2014-05-02 23:21:08 +02:00
|
|
|
|
2014-04-21 11:27:48 +02:00
|
|
|
#endif
|