TeamRobot OnMessageReceived Method Robocode Robot API for .NET
This method is called when your robot receives a message from a teammate. You should override it in your robot if you want to be informed of this event.

Examples

public void OnMessageReceived(MessageEvent evnt)
{
    Out.WriteLine(event.Sender + " sent me: " + evnt.Message);
}

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version: 1.9.3.0
Syntax

public virtual void OnMessageReceived(
	MessageEvent evnt
)

Implements

ITeamEvents OnMessageReceived(MessageEvent)
See Also