summaryrefslogtreecommitdiff
path: root/csrc/player_info.h
blob: 584a10808c5dc190f25f27b5cf1e3376bf6592b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
 * Copyright (C)  2018 Iru Cai <mytbk920423@gmail.com>
 * SPDX-License-Identifier: GPL-3.0-or-later
 */

#include <stdint.h>

typedef struct
{
	const char *name_ptr;
	uint32_t f4;
	uint16_t xpos; /* 0x496b70 */
	uint16_t ypos; /* 0x496b72 */
	uint16_t f12;
	uint16_t f14;
	/* 0x10 */
	uint8_t f16;
	uint8_t traffic_method; /* 0x496b79 */
	uint8_t ndices; /* 0x496b7a */
	uint8_t character;
	uint8_t sex; /* 0: female, 1: male */
	uint8_t who_plays; /* 0: not alive, 1: human, 2: computer @0x496b7d */
	uint8_t f22;
	uint8_t f23;
	uint8_t f24;
	uint8_t init_cash_ratio;
	uint8_t f26;
	uint8_t f27;
	int32_t cash;
	/* 0x20 */
	int32_t money_in_bank; /* including special financing */
	int32_t loan;
	int32_t special_finance;
	uint32_t f44;
	/* 0x30 */
	uint16_t points;
	uint8_t days_in_hotel; /* 0x496b9a */
	uint8_t days_disappearing;
	uint8_t days_in_prison;
	uint8_t days_in_hospital;
	uint8_t days_sleeping;
	uint8_t days_sleep_walking;
	uint8_t days_stopping; /* 0x496ba0 */
	uint8_t days_tortoise_walking;
	uint8_t f58;
	uint8_t days_rejected_by_bank;
	uint8_t days_bank_no_loans;
	uint8_t f61;
	uint8_t days_assurance;
	uint8_t god_info;
	/* 0x40 */
	uint8_t f64;
	uint8_t f65;
	uint8_t total_winter_sleep_days;
	uint8_t f67;
	uint16_t f68;
	uint16_t f70;
	uint16_t f72;
	uint16_t f74;
	uint32_t f76[6];
	uint8_t f100; /* 0x496bcc */
	uint8_t f101;
	uint8_t f102;
	uint8_t f103;
} player_info;

extern player_info players[]; /* 0x496b68 */
extern player_info rich4_players[]; /* 0x47e80c */

extern int nplayers; /* 0x499114 */
extern int current_player; /* 0x49910c */

extern uint8_t player_cards[60]; /* 0x499120 */
extern uint8_t tool_amount[60]; /* 0x49915c */

/* still don't know what this means,
 * assume it's special players */
typedef struct
{
	uint16_t f0;
	uint16_t f2;
	uint16_t f4;
	uint16_t f6;
	uint8_t f8[2];
	uint8_t f10; // 0x498df2
	uint8_t f11;
	uint8_t days_winter_sleep; // 0x498df4
	uint8_t days_sleep_walking; // 0x498df5
	uint8_t days_stopping;
	uint8_t days_tortoise_walking;
} special_player_info;

extern special_player_info special_players[5]; // 0x498e28