src/Network/Server.hh
changeset 435 7bad24ab668e
parent 431 c6d7272a164b
child 436 49f94c4bdf0d
equal deleted inserted replaced
434:a8ba81432ddd 435:7bad24ab668e
   128     
   128     
   129         virtual void spawn (Vector position);
   129         virtual void spawn (Vector position);
   130         virtual void die (bool start_timer = true);
   130         virtual void die (bool start_timer = true);
   131         // @}
   131         // @}
   132         //
   132         //
   133         
   133    
       
   134     public:
       
   135         /**
       
   136          * Sends the initial player info to the given node
       
   137          */
       
   138         void send_info (NetworkNode &node);
       
   139 
       
   140         /**
       
   141          * Sends the current rope state to the given target
       
   142          */
       
   143         void send_rope_state (NetworkTarget &target, RopeState state);
       
   144 
   134     private:
   145     private:
   135         /**
   146         /**
   136          * Our NetworkNode::sig_disconnected handler. This calls NetworkServer::handle_disconnect, sends a 
   147          * Our NetworkNode::sig_disconnected handler. This calls NetworkServer::handle_disconnect, sends a 
   137          * NETMSG_PLAYER_QUIT message to all remaining clients, and destroys this player.
   148          * NETMSG_PLAYER_QUIT message to all remaining clients, and destroys this player.
   138          */
   149          */