ITeamEvents MethodsRobocode Robot API for .NET
The ITeamEvents type exposes the following members.
Methods

  NameDescription
Public methodOnMessageReceived
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);
}
Back to Top
See Also