src/Network/Server.hh
changeset 408 e6cfc44266af
parent 400 d64bf28c4340
child 431 c6d7272a164b
equal deleted inserted replaced
407:443f6f7abcfb 408:e6cfc44266af
    65         /**
    65         /**
    66          * Our NetworkSession::sig_node_connected handler, this creates a new NetworkServerPlayer and adds it to
    66          * Our NetworkSession::sig_node_connected handler, this creates a new NetworkServerPlayer and adds it to
    67          * our list of players
    67          * our list of players
    68          */
    68          */
    69         void on_node_connected (NetworkNode *node);
    69         void on_node_connected (NetworkNode *node);
       
    70         
       
    71         /**
       
    72          * Called from on_node_connected to send the initial Terrain data using the NETCHAN_TERRAIN_ARRAY channel to
       
    73          * the given node.
       
    74          */
       
    75         void send_terrain_data (NetworkNode *node);
    70 };
    76 };
    71 
    77 
    72 /**
    78 /**
    73  * Our base NetworkObject_Server class, that also holds the NetworkServer reference and a CL_SlotContainer for
    79  * Our base NetworkObject_Server class, that also holds the NetworkServer reference and a CL_SlotContainer for
    74  * conveniance.
    80  * conveniance.
   137          * the various handle* methods. After this, we call send_position_update
   143          * the various handle* methods. After this, we call send_position_update
   138          */
   144          */
   139         void on_input (NetworkNode *node, NetworkPacketInput &pkt);
   145         void on_input (NetworkNode *node, NetworkPacketInput &pkt);
   140         
   146         
   141         /**
   147         /**
   142          * Called from the constructor to send the initial Terrain data using the NETCHAN_TERRAIN_ARRAY channel.
       
   143          */
       
   144         void send_terrain_data (void);
       
   145 
       
   146         /**
       
   147          * Called from on_input to broadcast an unreliable position update with this player's physics state
   148          * Called from on_input to broadcast an unreliable position update with this player's physics state
   148          */
   149          */
   149         void send_position_update (void);
   150         void send_position_update (void);
   150 };
   151 };
   151 
   152