ITeamRobotPeer GetTeammates Method Robocode Robot API for .NET
Returns the names of all teammates, or null there is no 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.RobotInterfaces.Peer
Assembly: robocode (in robocode.dll) Version: 1.9.3.0
Syntax

string[] GetTeammates()

Return Value

Type:  OnlineString 
See Also