File diff r25977:e1f4fbb88a36 → r25978:1911877bcb73
src/network/core/tcp_game.h
Show inline comments
 
@@ -96,12 +96,13 @@ enum PacketGameType {
 
	PACKET_CLIENT_COMMAND,               ///< Client executed a command and sends it to the server.
 
	PACKET_SERVER_COMMAND,               ///< Server distributes a command to (all) the clients.
 

	
 
	/* Human communication! */
 
	PACKET_CLIENT_CHAT,                  ///< Client said something that should be distributed.
 
	PACKET_SERVER_CHAT,                  ///< Server distributing the message of a client (or itself).
 
	PACKET_SERVER_EXTERNAL_CHAT,         ///< Server distributing the message from external source.
 

	
 
	/* Remote console. */
 
	PACKET_CLIENT_RCON,                  ///< Client asks the server to execute some command.
 
	PACKET_SERVER_RCON,                  ///< Response of the executed command on the server.
 

	
 
	/* Moving a client.*/
 
@@ -376,12 +377,22 @@ protected:
 
	 * uint64  data (used e.g. for 'give money' actions).
 
	 * @param p The packet that was just received.
 
	 */
 
	virtual NetworkRecvStatus Receive_SERVER_CHAT(Packet *p);
 

	
 
	/**
 
	 * Sends a chat-packet for external source to the client:
 
	 * string  Name of the source this message came from.
 
	 * uint16  TextColour to use for the message.
 
	 * string  Name of the user who sent the messsage.
 
	 * string  Message (max NETWORK_CHAT_LENGTH).
 
	 * @param p The packet that was just received.
 
	 */
 
	virtual NetworkRecvStatus Receive_SERVER_EXTERNAL_CHAT(Packet *p);
 

	
 
	/**
 
	 * Set the password for the clients current company:
 
	 * string  The password.
 
	 * @param p The packet that was just received.
 
	 */
 
	virtual NetworkRecvStatus Receive_CLIENT_SET_PASSWORD(Packet *p);