TeamRobot Teammates Property Robocode Robot API for .NET
Returns the names of all teammates, or null there is no teammates. The length of the string array is equal to the number of teammates.

Examples

public void Run()
{
    // Prints Out all teammates 
    string[] teammates = GetTeammates();
    if (teammates != null)
    {
        foreach (string member in teammates)
        {
            Out.WriteLine(member);
        }
    }
}

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

public string[] Teammates { get; }

Property Value

Type:  OnlineString 
See Also