Daniel-Martinez / Tags

Tags
0 stars 0 forks source link

Operator needs to be able to see a list of enemy's #15

Closed Daniel-Martinez closed 10 years ago

Daniel-Martinez commented 10 years ago

create a method that allows the Operator to see targets who are enemies.

Daniel-Martinez commented 10 years ago

created a method for Operator to type "scoundrels" and a list of targets that are enemies are displayed.

                    case "scoundrels":

                        for (int i = 0; i < targetList.Count; i++)
                        {
                            if (targetList[i].isFriend != true)     //if not a freind print from target list.
                            {
                                Console.Write("Target: " + targetList[i].Name + "\n");
                                Console.Write("Friend: No He's a scoundrel with a clever disguise\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;