Closed Daniel-Martinez closed 10 years ago
created a method that iterates the target list to output a list of Fiends and their attributes.
case "friends":
for (int i = 0; i < targetList.Count; i++)
{
if (targetList[i].isFriend == true) //if value for out Target isFriend is true he's cool
{
Console.Write("Target: " + targetList[i].Name + "\n");
Console.Write("Friend: One of us\n");
Console.Write("Position: " + " x=" + targetList[i].X + ", y=" + targetList[i].Y + ", z=" + targetList[i].Z + "\n");
Console.Write("Points: " + targetList[i].score + "\n");
Console.Write("Status: " + targetList[i].Status + "\n");
Console.Write("\n");
}
}
break;
create a method for the Operator to see a list of the targets that are friends.