-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player Actions.txt
62 lines (52 loc) · 1.14 KB
/
Player Actions.txt
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
/Connect:
Stores player in online list, with sub and name paired for use backend
on call, expects body of:
{
Sub : "Sub Here" (Ensures player validity, used to then pull player info from database and make an object)
}
/ListGames:
Lists all games that are in lobby.
on call, expects body of:
{
Sub : "Sub Here" (Ensures player validity, used to then pull player info from database and make an object)
}
/CreateGame
Creates a new game lobby.
Start Button
Invite Button (Online players can get messages, maybe sns friends in time)
Sets user with flag to start whenever
on call, expects a body of:
{
"Sub": "Sub Here"
}
/StartGame
Only done by creator
Starts game with any number of players
on call, expects a body of:
{
"Sub": "Sub Here"
}
/Bet
on call, expects a body of:
{
"Sub": "Sub Here"
"Bet" : "Value Here"
}
/PlayCard
on call, expects a body of:
{
"Sub": "Sub Here"
"Card" : "Card Here"
}
/Forfeit
Drops player from game, ends it if no more real players.
on call, expects a body of:
{
"Sub": "Sub Here"
}
/Disconnect
Stores players object information into database
on call, expects a body of:
{
"Sub": "Sub Here"
}