Commit graph

  • 1a030411c4 Add function to update the player's socket ID. main Oliver-Akins 2020-10-23 23:41:58 -06:00
  • e7f8a5462a Add rejoin datapoint in response data Oliver-Akins 2020-10-23 23:41:41 -06:00
  • ac5b20b8a8 Add processing to allow re-joining the game. Oliver-Akins 2020-10-23 23:41:24 -06:00
  • 5d686afe5b Add property for presidential queue Oliver-Akins 2020-10-22 23:33:53 -06:00
  • b2cfa87153 Update deck creation Oliver-Akins 2020-10-22 23:33:38 -06:00
  • 279d89f308 Fix: Select the correct number of fascists, rather than one additional Oliver-Akins 2020-10-22 23:32:03 -06:00
  • 3e67e5d296 Move roles and positions to it's own type alias. Oliver-Akins 2020-10-22 23:30:55 -06:00
  • 32d56475e2 Make sure to send event to host as well. Oliver-Akins 2020-10-22 23:30:35 -06:00
  • 647bdde1f1 Add event to get a specific player's info. Oliver-Akins 2020-10-22 23:28:43 -06:00
  • a8d0cb5b19 Move database directory to constants Oliver-Akins 2020-10-22 20:51:20 -06:00
  • fd4088b2a5 Update events document Oliver-Akins 2020-10-22 20:45:25 -06:00
  • 7be4db65cc Add scripts for the differing log levels. Oliver-Akins 2020-10-22 20:35:30 -06:00
  • b7367f599c Parse command line arguments Oliver-Akins 2020-10-22 20:35:10 -06:00
  • ef910ec402 Add "arg" dependency Oliver-Akins 2020-10-22 19:54:17 -06:00
  • 7865026a0e Remove un-needed file Oliver-Akins 2020-10-22 19:53:57 -06:00
  • 103ecf8bb4 Implement the KillGame event. Oliver-Akins 2020-10-21 22:15:52 -06:00
  • c2e670c5f8 Update KickPlayer to RemovePlayer Oliver-Akins 2020-10-21 21:43:44 -06:00
  • 5888f5e2a9 Allow a user to kick themselves from the game. Oliver-Akins 2020-10-21 21:14:26 -06:00
  • 7a3e50d522 Store user's id and send it to them. Oliver-Akins 2020-10-21 20:55:01 -06:00
  • aca7d25526 Adjust ordering of events to ensure everyone gets it. Oliver-Akins 2020-10-21 00:11:25 -06:00
  • fef8cbbbdc Add a listener for the KickPlayer event Oliver-Akins 2020-10-20 22:43:50 -06:00
  • 4bac811e2b Remove the player's socket from the room. Oliver-Akins 2020-10-20 22:43:35 -06:00
  • b8f71fbc46 Change log from error to warn Oliver-Akins 2020-10-20 22:43:05 -06:00
  • 8ca6d8352d Remove unused data point from response data Oliver-Akins 2020-10-10 18:53:38 -06:00
  • 6a3f15d718 Update import Oliver-Akins 2020-10-10 18:53:21 -06:00
  • b9c9154f00 Add UUID package Oliver-Akins 2020-10-10 18:53:07 -06:00
  • a9192e9423 Add function to generate user ID Oliver-Akins 2020-10-10 18:52:57 -06:00
  • 1f3f643f27 Rename file Oliver-Akins 2020-10-10 18:52:34 -06:00
  • f6edea5d34 Add semi-colons. Oliver-Akins 2020-10-10 18:42:30 -06:00
  • 8c040e762e Update log levels Oliver-Akins 2020-10-10 17:29:15 -06:00
  • f30550669f Change output Oliver-Akins 2020-10-10 17:29:02 -06:00
  • 435d806b92 Assume everyone is liberal so we only ever need to change the fascist players Oliver-Akins 2020-10-10 17:28:32 -06:00
  • 16c9376a55 Add a constants file so that we don't need to have constants in the class files. Oliver-Akins 2020-10-10 01:38:23 -06:00
  • 03db868b7c Begin work on the backend info needed for the game itself Oliver-Akins 2020-10-10 01:38:00 -06:00
  • a709630c62 Init Board class Oliver-Akins 2020-10-10 01:08:45 -06:00
  • bca0ca3787 Fixing a typo Oliver-Akins 2020-10-10 01:07:52 -06:00
  • f57b4b5fed Player will always be specified. Oliver-Akins 2020-10-10 01:07:41 -06:00
  • 00f67c7c1e Add Starting response interface Oliver-Akins 2020-10-10 01:07:21 -06:00
  • 9f4023772d Trigger the game start sequence Oliver-Akins 2020-10-10 01:06:59 -06:00
  • fd2857d055 Add check to ensure that the game can start. Oliver-Akins 2020-10-09 16:49:53 -06:00
  • 64b5c49187 Add method to see if the game can start Oliver-Akins 2020-10-09 16:48:54 -06:00
  • 8dfea57a7c Add player count attribute Oliver-Akins 2020-10-09 16:34:24 -06:00
  • 7b8ade6f4c Update processing and add host check Oliver-Akins 2020-10-09 16:30:14 -06:00
  • 004819ac7a Add information regarding the StartGame response Oliver-Akins 2020-10-09 16:29:48 -06:00
  • 893d139dec Convert game existence check to not use Object.keys Oliver-Akins 2020-10-09 16:22:42 -06:00
  • d0ed987876 Begin work on StartGame event Oliver-Akins 2020-10-09 16:19:21 -06:00
  • 665b6b163e Update import order Oliver-Akins 2020-10-08 23:28:34 -06:00
  • ef4ebc0c64 Move the ExecutiveConfirmation event into events root Oliver-Akins 2020-10-08 23:27:27 -06:00
  • b7cb111ea1 Move ExecutePlayer file into events root Oliver-Akins 2020-10-08 23:26:58 -06:00
  • 73b44fc5c0 Move the NextPresident file into the main events folder Oliver-Akins 2020-10-08 23:26:29 -06:00
  • 7ad07ffe2c Move InvestigateParty into the main events folder Oliver-Akins 2020-10-08 23:26:00 -06:00
  • 5ef4544822 Finish renaming event Oliver-Akins 2020-10-08 23:25:32 -06:00
  • 6ccb5f840e Rename event. Oliver-Akins 2020-10-08 23:24:02 -06:00
  • a451c69dad Add placeholders for all the planned events. Oliver-Akins 2020-10-08 23:22:06 -06:00
  • d2014d6742 Add base function for killing the game Oliver-Akins 2020-10-08 23:12:47 -06:00
  • b58d1e7049 Add groups for event responses Oliver-Akins 2020-10-08 23:09:58 -06:00
  • 12798e7a53 Begin work on event documentation Oliver-Akins 2020-10-08 23:06:21 -06:00
  • 150a719116 Emit the correct event Oliver-Akins 2020-10-08 23:06:09 -06:00
  • 46620ec326 remove game_code from client data interface Oliver-Akins 2020-10-08 23:05:32 -06:00
  • 79fae1a8a7 Change response emission to not include "Response" Oliver-Akins 2020-10-08 23:05:13 -06:00
  • 5d328da49c Emit only to the game room, remove game code from response Oliver-Akins 2020-10-08 23:04:17 -06:00
  • c0e9efcc9f Add server variable to the event handlers. Oliver-Akins 2020-10-08 21:30:39 -06:00
  • c5e1621366 Add player to the game's socket room Oliver-Akins 2020-10-08 21:21:59 -06:00
  • f43f36eb46 Add socket ID to player's information and remove host from initializer Oliver-Akins 2020-10-08 21:19:23 -06:00
  • efa7540404 Condense the game object creation Oliver-Akins 2020-10-08 11:14:48 -06:00
  • e3d9bc7e13 Add users to game room when they create a game. Oliver-Akins 2020-10-08 11:14:32 -06:00
  • d49b214762 Adjust the log stack for the cleanup Oliver-Akins 2020-10-06 23:18:09 -06:00
  • d4d01bf3ac Change property name. Oliver-Akins 2020-10-06 23:17:40 -06:00
  • 05dc6995e5 Add remove_player method. Oliver-Akins 2020-10-06 23:17:12 -06:00
  • 30ee2febcb Adjust string output Oliver-Akins 2020-10-06 23:16:53 -06:00
  • bdb7f6fc14 Add getter for host of the game Oliver-Akins 2020-10-06 23:16:36 -06:00
  • 86199d71d5 Begin work on the Kickplayer event Oliver-Akins 2020-10-06 23:15:58 -06:00
  • 5fa807f034 Add response data for Kickplayer Oliver-Akins 2020-10-06 23:15:41 -06:00
  • b24e0574a7 Update NewPlayer event response Oliver-Akins 2020-10-06 23:15:23 -06:00
  • 9f96850e8e Change from debug to error level Oliver-Akins 2020-10-06 23:15:02 -06:00
  • e8b9b41453 Pretty-print error on catching it Oliver-Akins 2020-10-06 23:14:49 -06:00
  • 252cd773ac Add information for the KickPlayer event Oliver-Akins 2020-10-05 12:13:27 -06:00
  • 076b5fffe6 Update logger settings. Oliver-Akins 2020-10-05 12:12:43 -06:00
  • 6757f12f6a Add request information for the KillGame event. Oliver-Akins 2020-10-05 12:12:10 -06:00
  • 0ed3800467 Update response data. Oliver-Akins 2020-10-05 12:11:43 -06:00
  • b5f054f0b7 remove references for the DB Oliver-Akins 2020-10-05 12:11:26 -06:00
  • dbd6aefbd2 Add more log events to the JoinGame function. Oliver-Akins 2020-10-02 16:57:44 -06:00
  • 0fe1008196 Add more configurability to the logger. Oliver-Akins 2020-10-02 16:55:21 -06:00
  • bdc7bccfcc Implement the JoinGame event Oliver-Akins 2020-10-02 16:52:47 -06:00
  • e45a1a4b89 Actually exit from the app when we're done cleaning up. Oliver-Akins 2020-10-02 16:52:17 -06:00
  • 2141e8bb21 Import the Game class because we need to Oliver-Akins 2020-10-02 16:51:54 -06:00
  • edb083f744 Add export to the Game class Oliver-Akins 2020-10-02 16:50:49 -06:00
  • c284735e5e Add needed import for Game object. Oliver-Akins 2020-10-02 16:50:31 -06:00
  • 494a001afd Update GetPlayerList to use the game objects. Oliver-Akins 2020-10-02 16:50:09 -06:00
  • de3a8ea61e Update type for status. Oliver-Akins 2020-10-01 22:17:18 -06:00
  • b842d9f8bc Add a status indicator to Game objects Oliver-Akins 2020-10-01 22:16:10 -06:00
  • 22a76984eb Make data actually representative of what the client will get Oliver-Akins 2020-10-01 22:04:36 -06:00
  • 564206dd8b Begin using the tslog module Oliver-Akins 2020-10-01 21:45:40 -06:00
  • 1578df961c Generate source map for tslog Oliver-Akins 2020-10-01 21:38:32 -06:00
  • 46b9111035 Add tslog module Oliver-Akins 2020-10-01 21:38:20 -06:00
  • d2b6bfb54f Switch over to the Game object instead of DB Oliver-Akins 2020-10-01 21:12:55 -06:00
  • 8fb4c538f0 Remove ugly underscore from attribute name Oliver-Akins 2020-10-01 21:10:55 -06:00
  • c4a16e5695 Add docstring Oliver-Akins 2020-10-01 21:08:04 -06:00
  • 64b5428136 Add a policy type alias. Oliver-Akins 2020-10-01 20:29:09 -06:00
  • ea13b46c66 Add some type info for request data. Oliver-Akins 2020-10-01 20:28:56 -06:00