library php-mud-server
Mud server written in PHP
carlescliment/php-mud-server
Mud server written in PHP
- Sunday, April 27, 2014
- by carlescliment
- Repository
- 1 Watchers
- 0 Stars
- 1 Installations
- Puppet
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
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., (*1)
dev-master
9999999-dev
Mud server written in PHP
Sources
Download
Apache2
The Development Requires