Daniel-Martinez / Tags

Tags
0 stars 0 forks source link

Operator needs to see a list of friends #14

Closed Daniel-Martinez closed 10 years ago

Daniel-Martinez commented 10 years ago

create a method for the Operator to see a list of the targets that are friends.

Daniel-Martinez commented 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;