2014-08-20 23:48:36 +02:00
|
|
|
/*****************************************************************************
|
2014-08-20 23:53:51 +02:00
|
|
|
* Copyright (c) 2014 Dániel Tar
|
2014-08-20 23:48:36 +02:00
|
|
|
* 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.
|
2015-10-20 20:16:30 +02:00
|
|
|
|
2014-08-20 23:48:36 +02:00
|
|
|
* 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.
|
2015-10-20 20:16:30 +02:00
|
|
|
|
2014-08-20 23:48:36 +02:00
|
|
|
* 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 _STAFF_H_
|
|
|
|
#define _STAFF_H_
|
|
|
|
|
2014-10-06 18:36:58 +02:00
|
|
|
#include "../common.h"
|
2014-11-02 02:41:00 +01:00
|
|
|
#include "peep.h"
|
2014-08-20 23:48:36 +02:00
|
|
|
|
|
|
|
#define STAFF_MAX_COUNT 0xC8
|
2014-09-15 20:21:38 +02:00
|
|
|
#define STAFF_TYPE_COUNT 0x04
|
2014-08-20 23:48:36 +02:00
|
|
|
|
2014-09-15 20:47:54 +02:00
|
|
|
enum STAFF_MODE {
|
|
|
|
STAFF_MODE_NONE,
|
|
|
|
STAFF_MODE_WALK,
|
|
|
|
STAFF_MODE_PATROL = 3
|
|
|
|
};
|
|
|
|
|
2014-08-20 23:48:36 +02:00
|
|
|
enum STAFF_TYPE {
|
|
|
|
STAFF_TYPE_HANDYMAN,
|
|
|
|
STAFF_TYPE_MECHANIC,
|
|
|
|
STAFF_TYPE_SECURITY,
|
|
|
|
STAFF_TYPE_ENTERTAINER
|
|
|
|
};
|
|
|
|
|
2015-03-14 11:12:38 +01:00
|
|
|
enum STAFF_ORDERS{
|
|
|
|
STAFF_ORDERS_SWEEPING = (1 << 0),
|
|
|
|
STAFF_ORDERS_WATER_FLOWERS = (1 << 1),
|
|
|
|
STAFF_ORDERS_EMPTY_BINS = (1 << 2),
|
2015-04-02 19:47:01 +02:00
|
|
|
STAFF_ORDERS_MOWING = (1 << 3),
|
|
|
|
STAFF_ORDERS_INSPECT_RIDES = (1 << 0),
|
|
|
|
STAFF_ORDERS_FIX_RIDES = (1 << 1)
|
2015-03-14 11:12:38 +01:00
|
|
|
};
|
|
|
|
|
2015-07-13 20:51:46 +02:00
|
|
|
extern uint32 *gStaffPatrolAreas;
|
|
|
|
extern uint8 *gStaffModes;
|
|
|
|
|
2015-02-08 15:31:37 +01:00
|
|
|
void game_command_update_staff_colour(int *eax, int *ebx, int *ecx, int *edx, int *esi, int *edi, int *ebp);
|
|
|
|
void game_command_hire_new_staff_member(int *eax, int *ebx, int *ecx, int *edx, int *esi, int *edi, int *ebp);
|
2015-04-12 20:27:39 +02:00
|
|
|
void game_command_set_staff_order(int *eax, int *ebx, int *ecx, int *edx, int *esi, int *edi, int *ebp);
|
2015-04-12 22:12:06 +02:00
|
|
|
void game_command_set_staff_patrol(int *eax, int *ebx, int *ecx, int *edx, int *esi, int *edi, int *ebp);
|
2015-04-12 22:24:43 +02:00
|
|
|
void game_command_fire_staff_member(int *eax, int *ebx, int *ecx, int *edx, int *esi, int *edi, int *ebp);
|
2014-08-20 23:48:36 +02:00
|
|
|
|
2015-07-14 19:18:10 +02:00
|
|
|
void staff_reset_modes();
|
2015-02-08 15:31:37 +01:00
|
|
|
void update_staff_colour(uint8 staffType, uint16 color);
|
|
|
|
uint16 hire_new_staff_member(uint8 staffType);
|
2015-04-13 03:06:51 +02:00
|
|
|
void staff_update_greyed_patrol_areas();
|
2014-11-02 02:41:00 +01:00
|
|
|
int mechanic_is_location_in_patrol(rct_peep *mechanic, int x, int y);
|
2015-03-31 03:48:26 +02:00
|
|
|
void staff_reset_stats();
|
2015-07-13 20:51:46 +02:00
|
|
|
bool staff_is_patrol_area_set(int staffIndex, int x, int y);
|
2014-08-20 23:48:36 +02:00
|
|
|
|
|
|
|
#endif
|