Skip to content

carlescliment/php-mud-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-mud-server

Brainstorm:

  • When a new connection is received, it dispatches a NEW_PLAYER_EVENT
  • A player is a class that contains a CommunicationBridge.
  • The CommunicationBridge contains the socket itself, and is able to send messages to the player.
  • When a message is received, it dispatches an INCOMING_PLAYER_MESSAGE_EVENT.
  • The app converts the message into a command and pushes it into a command stack.
  • There is a thread, it is the clock, and dispatches a NEW_TURN_EVENT every second.
  • When a NEW_TURN_EVENT is received, the app will collect all the commands in the stack, makes whatever it needs to, and sends the proper messages to the player.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published