forked from russ/openpoker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.hrl
117 lines (101 loc) · 1.9 KB
/
schema.hrl
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
%%% Copyright (C) 2005-2008 Wager Labs, SA
-record(tab_counter, {
type,
value
}).
-record(tab_player_info, {
pid,
user_id, % external user id
nick,
password,
location,
login_errors = 0,
disabled = false % player is disabled
}).
-record(tab_player, {
pid,
process = none, % process id
socket = none
}).
-record(tab_balance, {
pid,
amount % integer
}).
-record(tab_tourney_balance, {
tidpid,
amount % integer
}).
-record(tab_inplay, {
gidpid,
amount % integer
}).
-record(tab_game_xref, {
gid,
process,
type,
limit,
table_name,
seat_count,
timeout,
required % min player count
}).
-record(tab_seat_history, {
nick,
hand,
state
}).
%% app config
-record(tab_game_config, {
id,
type,
seat_count,
limit,
start_delay,
player_timeout,
max
}).
-record(tab_cluster_config, {
id,
gateways = [],
mnesia_masters = [],
logdir = "/tmp",
max_login_errors = 5,
%% players can start games
enable_dynamic_games = false,
test_game_pass
}).
-record(tab_tourney_config, {
id,
type, % normal or sit&go
max_players, % # players required to start
seat_count, % per table
start_time,
buyin, %
chips, % amount each player gets for their buy-in
rake,
level_duration, % minutes
blinds_factor, % per level multiplier
starting_blinds, % e.g. {10, 20}
ante,
ante_start_level,
break_duration, % minutes
break_frequency, % number
prize_winners,
prize_struct
}).
-record(tab_tourney, {
tid,
config,
level,
break_timer,
level_timer,
empty_seats
}).
-record(tab_tourney_table, {
tid,
gid
}).
-record(tab_tourney_player, {
tid,
pid
}).