Commit graph

111 commits

Author SHA1 Message Date
Oliver-Akins
fef8cbbbdc Add a listener for the KickPlayer event 2020-10-20 22:43:50 -06:00
Oliver-Akins
4bac811e2b Remove the player's socket from the room. 2020-10-20 22:43:35 -06:00
Oliver-Akins
b8f71fbc46 Change log from error to warn 2020-10-20 22:43:05 -06:00
Oliver-Akins
8ca6d8352d Remove unused data point from response data 2020-10-10 18:53:38 -06:00
Oliver-Akins
6a3f15d718 Update import 2020-10-10 18:53:21 -06:00
Oliver-Akins
b9c9154f00 Add UUID package 2020-10-10 18:53:07 -06:00
Oliver-Akins
a9192e9423 Add function to generate user ID 2020-10-10 18:52:57 -06:00
Oliver-Akins
1f3f643f27 Rename file 2020-10-10 18:52:34 -06:00
Oliver-Akins
f6edea5d34 Add semi-colons. 2020-10-10 18:42:30 -06:00
Oliver-Akins
8c040e762e Update log levels 2020-10-10 17:29:15 -06:00
Oliver-Akins
f30550669f Change output 2020-10-10 17:29:02 -06:00
Oliver-Akins
435d806b92 Assume everyone is liberal so we only ever need to change the fascist players 2020-10-10 17:28:32 -06:00
Oliver-Akins
16c9376a55 Add a constants file so that we don't need to have constants in the class files. 2020-10-10 01:38:23 -06:00
Oliver-Akins
03db868b7c Begin work on the backend info needed for the game itself 2020-10-10 01:38:00 -06:00
Oliver-Akins
a709630c62 Init Board class 2020-10-10 01:08:45 -06:00
Oliver-Akins
bca0ca3787 Fixing a typo 2020-10-10 01:07:52 -06:00
Oliver-Akins
f57b4b5fed Player will always be specified. 2020-10-10 01:07:41 -06:00
Oliver-Akins
00f67c7c1e Add Starting response interface 2020-10-10 01:07:21 -06:00
Oliver-Akins
9f4023772d Trigger the game start sequence 2020-10-10 01:06:59 -06:00
Oliver-Akins
fd2857d055 Add check to ensure that the game can start. 2020-10-09 16:49:53 -06:00
Oliver-Akins
64b5c49187 Add method to see if the game can start 2020-10-09 16:48:54 -06:00
Oliver-Akins
8dfea57a7c Add player count attribute 2020-10-09 16:34:24 -06:00
Oliver-Akins
7b8ade6f4c Update processing and add host check 2020-10-09 16:30:14 -06:00
Oliver-Akins
004819ac7a Add information regarding the StartGame response 2020-10-09 16:29:48 -06:00
Oliver-Akins
893d139dec Convert game existence check to not use Object.keys 2020-10-09 16:22:42 -06:00
Oliver-Akins
d0ed987876 Begin work on StartGame event 2020-10-09 16:19:21 -06:00
Oliver-Akins
665b6b163e Update import order 2020-10-08 23:28:34 -06:00
Oliver-Akins
ef4ebc0c64 Move the ExecutiveConfirmation event into events root 2020-10-08 23:27:27 -06:00
Oliver-Akins
b7cb111ea1 Move ExecutePlayer file into events root 2020-10-08 23:26:58 -06:00
Oliver-Akins
73b44fc5c0 Move the NextPresident file into the main events folder 2020-10-08 23:26:29 -06:00
Oliver-Akins
7ad07ffe2c Move InvestigateParty into the main events folder 2020-10-08 23:26:00 -06:00
Oliver-Akins
5ef4544822 Finish renaming event 2020-10-08 23:25:32 -06:00
Oliver-Akins
6ccb5f840e Rename event. 2020-10-08 23:24:02 -06:00
Oliver-Akins
a451c69dad Add placeholders for all the planned events. 2020-10-08 23:22:06 -06:00
Oliver-Akins
d2014d6742 Add base function for killing the game 2020-10-08 23:12:47 -06:00
Oliver-Akins
b58d1e7049 Add groups for event responses 2020-10-08 23:09:58 -06:00
Oliver-Akins
12798e7a53 Begin work on event documentation 2020-10-08 23:06:21 -06:00
Oliver-Akins
150a719116 Emit the correct event 2020-10-08 23:06:09 -06:00
Oliver-Akins
46620ec326 remove game_code from client data interface 2020-10-08 23:05:32 -06:00
Oliver-Akins
79fae1a8a7 Change response emission to not include "Response" 2020-10-08 23:05:13 -06:00
Oliver-Akins
5d328da49c Emit only to the game room, remove game code from response 2020-10-08 23:04:17 -06:00
Oliver-Akins
c0e9efcc9f Add server variable to the event handlers. 2020-10-08 21:30:39 -06:00
Oliver-Akins
c5e1621366 Add player to the game's socket room 2020-10-08 21:21:59 -06:00
Oliver-Akins
f43f36eb46 Add socket ID to player's information and remove host from initializer 2020-10-08 21:19:23 -06:00
Oliver-Akins
efa7540404 Condense the game object creation 2020-10-08 11:14:48 -06:00
Oliver-Akins
e3d9bc7e13 Add users to game room when they create a game. 2020-10-08 11:14:32 -06:00
Oliver-Akins
d49b214762 Adjust the log stack for the cleanup 2020-10-06 23:18:09 -06:00
Oliver-Akins
d4d01bf3ac Change property name. 2020-10-06 23:17:40 -06:00
Oliver-Akins
05dc6995e5 Add remove_player method. 2020-10-06 23:17:12 -06:00
Oliver-Akins
30ee2febcb Adjust string output 2020-10-06 23:16:53 -06:00