No Message

Kayne Ruse
2013-06-09 17:18:35 +10:00
parent 84153a5160
commit 48efb28695
2 changed files with 34 additions and 5 deletions
+24 -5
@@ -2,6 +2,8 @@ These are the basic networking protocols used by the client and server programs.
#### Packet Types #### Packet Types
* none "problem"
* ping "are you there?" * ping "are you there?"
* pong "I am here" * pong "I am here"
* broadcast request "what servers are available?" * broadcast request "what servers are available?"
@@ -10,10 +12,27 @@ These are the basic networking protocols used by the client and server programs.
* join confirm "yes, here's your data" * join confirm "yes, here's your data"
* disconnect "I/you need to go" * disconnect "I/you need to go"
* synchronize * synchronize "send me all of the data you've got"
* new player * player new "create this player at this location"
* delete player * player delete "delete this player"
* movement * player move "this is the player's new movement data"
#### Procedure #### Procedures
connecting to a server:
* client sends a broadcast
* server responds with data (name, version)
* client sends a join request
* server responds with data (player index, resource list)
* client switches to resource loading/game mode
* client sends sync request
in the game:
* either sends player new command
* either receives player new command; server relays this command
* either sends player delete command
* either receives player delete command; server relays this command
* either sends player move command
* either receives player move command; server relays this command
+10
@@ -20,3 +20,13 @@ Should the server program have a UI? Or at least allow some sort of input at the
#### Equipment #### Equipment
Equipment should be items, but should the item object be placed in the equipment slot when it's equiped? Or should the slot gain certain traits, and the item is removed from the game? Equipment should be items, but should the item object be placed in the equipment slot when it's equiped? Or should the slot gain certain traits, and the item is removed from the game?
#### Scratchings
Server Room:
* constructor
* destructor
* roomIndex
* game map
* player list
* monster list
* combat entrance list