ITeamRobotPeer IsTeammate Method Robocode Robot API for .NET
Checks if a given robot name is the name of one of your teammates.

Examples

public void OnScannedRobot(ScannedRobotEvent e)
{
    if (IsTeammate(e.Name)
    {
        return;
    }
    Fire(1);
}

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

bool IsTeammate(
	string name
)

Return Value

Type: OnlineBoolean
See Also