public string GetPlayerName() { if (player == null) { return("Human"); } else { return(player.GetName()); } }
public void Add(CPlayer p) { p.name = p.GetName(); int index = GetIndex(p.name); if (index >= 0) { list[index] = p; } else { list.Add(p); } }