0
0
Fork 0
Commit graph

62 commits

Author SHA1 Message Date
Oliver-Akins
59819dba45 Add the user to the correct socket rooms. 2021-01-08 23:12:48 -07:00
Oliver-Akins
3441e5acd2 Add ResetGame types 2021-01-07 18:15:32 -07:00
Oliver-Akins
d56ac2e689 Add ResetGame functionality. 2021-01-07 18:14:17 -07:00
Oliver-Akins
eb2a85399b Update logs / add an error log on 500 errors. 2021-01-07 16:15:43 -07:00
Oliver-Akins
2d59397c4a Update event template. 2021-01-07 16:13:37 -07:00
Oliver-Akins
7993c0257f Fix data not being populated properly. 2021-01-07 16:12:15 -07:00
Oliver-Akins
9689b23007 Add data needed for the GameRejoined event 2021-01-07 15:33:18 -07:00
Oliver-Akins
c34fec10ad Run a check of all active games for ones with no socket connections. 2021-01-07 12:43:13 -07:00
Oliver-Akins
aee33fd63a If the game the player is trying to join is hibernated, make it active. 2021-01-07 12:40:10 -07:00
Oliver-Akins
ce252d471a Remove unused conf import 2021-01-07 12:32:47 -07:00
Oliver-Akins
c79d8f970a Prevent host player duplication. 2021-01-07 12:32:31 -07:00
Oliver-Akins
6332673160 Close #32 -> Hand Discarding Size Increase 2021-01-07 11:22:32 -07:00
Oliver-Akins
4e73b1ede5 Adjust GameDeleted response to include message. 2021-01-05 16:52:18 -07:00
Oliver-Akins
5ce4f45c89 Update error message. 2021-01-05 14:21:10 -07:00
Oliver-Akins
ee16218c18 Draw new cards for a team when the spirit selects a card to answer rather than right when the medium sends the card to the spirit. 2021-01-05 14:20:54 -07:00
Oliver-Akins
fe9e272926 Update event emissions. 2021-01-05 10:31:25 -07:00
Oliver-Akins
52ec31eb0b Update error emits and change the hand drawing method. 2021-01-03 16:30:06 -07:00
Oliver-Akins
41d1a4f4d9 Adjust error response event name. 2021-01-03 16:16:53 -07:00
Oliver-Akins
b0b8b1296e Implement a GetHand event. 2021-01-03 16:16:28 -07:00
Oliver-Akins
d262dd3691 Change log level. 2021-01-03 00:05:40 -07:00
Oliver-Akins
fab77b06b4 Fix bug that would remove the player from the general role room if they were switching from one team to the other, but remaining in the same role. 2021-01-03 00:05:22 -07:00
Oliver-Akins
23946e8bc1 Update event emission for errors. 2021-01-03 00:04:26 -07:00
Oliver-Akins
45a9d3db45 Make the response use the expected property name 2021-01-02 18:53:48 -07:00
Oliver-Akins
41faf15d24 Correct multiple issues (see detailed description)
1) Not including a status in the 200 response
2) Emitting errors on "Error" instead of "ChosenObject"
3) Using "data.object" instead of "data.choice"
2021-01-02 18:35:11 -07:00
Oliver-Akins
8ab9f558f6 Update logs to not be getting data that isn't completely needed. 2021-01-02 18:33:49 -07:00
Oliver-Akins
1c2fdb8944 Don't emit the ChosenObject event to everyone in the game. 2021-01-02 17:35:57 -07:00
Oliver-Akins
93d7782ee8 Adjust what rooms the players are put into and add more logs. 2021-01-02 17:35:05 -07:00
Oliver-Akins
fdadfca76a Implement StartGame event 2021-01-02 13:32:56 -07:00
Oliver-Akins
5345c97f33 Update logs to use Game's logger when possible instead of Global. 2021-01-02 13:32:05 -07:00
Oliver-Akins
21c9034ab6 Add a child logger to the Game 2021-01-02 13:29:26 -07:00
Oliver-Akins
9989409c13 Implement LeaveGame event 2021-01-02 00:33:23 -07:00
Oliver-Akins
5cee09f3f0 Add some debug logs for players joining 2021-01-02 00:33:10 -07:00
Oliver-Akins
bf4f5c878e Emit the event to all connected clients in the game. 2021-01-01 23:24:50 -07:00
Oliver-Akins
a9926fa9c2 Update error event emission names 2021-01-01 23:24:16 -07:00
Oliver-Akins
fac5dd0c7e Join the player to the game room. 2021-01-01 20:36:04 -07:00
Oliver-Akins
e2e62859b7 Make the action property actually consistent across event emits 2021-01-01 20:35:50 -07:00
Oliver-Akins
4a9d5cb533 Add proper data to the user join emit 2021-01-01 20:13:25 -07:00
Oliver-Akins
51db315e35 Add status to game-wide emission. 2021-01-01 20:13:04 -07:00
Oliver-Akins
2414236454 Add player name to the modify player log 2021-01-01 20:07:55 -07:00
Oliver-Akins
06aabcf74e Update error events 2021-01-01 16:01:02 -07:00
Oliver-Akins
958d8a1382 Add case where the player is just joining a team for the first time. 2021-01-01 16:00:31 -07:00
Oliver-Akins
5dbf3e1d15 Add logging 2021-01-01 15:59:51 -07:00
Oliver-Akins
16aab9a664 Update response event name for erroring 2021-01-01 15:57:21 -07:00
Oliver-Akins
580382b7b2 Change error events to the main event response name. 2021-01-01 15:55:51 -07:00
Oliver-Akins
7f93f2730c Send a player list back when the game is created or joined 2021-01-01 15:54:47 -07:00
Oliver-Akins
e71c58c78a Implement UpdateAnswer 2020-12-27 15:33:15 -07:00
Oliver-Akins
39f5e2bf43 Join/Leave the player from the team and role rooms 2020-12-27 15:10:48 -07:00
Oliver-Akins
da7469b2c5 Add check for the writer role being filled already 2020-12-27 15:09:22 -07:00
Oliver-Akins
e33148169e Update the source in the error response 2020-12-27 15:08:32 -07:00
Oliver-Akins
19f02c60b2 Adjust method call for the team hand updating 2020-12-27 15:07:39 -07:00