예제 #1
0
        static void Main(string[] args)
        {
            Program test = new Program();

            Warrior warrior = new Warrior("PLAYER_TEST");
            test.printPlayer(warrior);
            Console.WriteLine();

            SharpShooter shooter = new SharpShooter("PLAYER_TEST");
            test.printPlayer(shooter);
            Console.WriteLine();

            Survivalist survivor = new Survivalist("PLAYER_TEST");
            test.printPlayer(survivor);
            Console.WriteLine();

            Sloucher sloucher = new Sloucher("ZED_TEST");
            test.printZed(sloucher);
            Console.WriteLine();

            FastAttack fastattack = new FastAttack("ZED_TEST");
            test.printZed(fastattack);
            Console.WriteLine();

            Tank tank = new Tank("ZED_TEST");
            test.printZed(tank);
            Console.WriteLine();

            Shank shank = new Shank("ZED_TEST");
            test.printZed(shank);
            Console.WriteLine();

            Spitter spitter = new Spitter("ZED_TEST");
            test.printZed(spitter);
            Console.WriteLine();
        }
예제 #2
0
파일: Square.cs 프로젝트: Nayshlok/Zombie
        private void right_Clicked(object sender, System.Windows.RoutedEventArgs e)
        {
            MenuItem gmMenu;
            gmMenu = (MenuItem)sender;

            if (!IsOpen)
            {
                if (gmMenu.Name == "CurrentStatus")
                {

                    if (Token is Player)
                    {
                        addCharacter = new AddCharacterWindow();
                        addCharacter.SquarePointer = this;
                        addCharacter.DataContext = Token;
                        addCharacter.inventoryDataGrid.ItemsSource = Token.Inventory.itemList;
                        addCharacter.Show();
                    }

                }
                else if (gmMenu.Name == "ZedStatus")
                {
                    if (Token is Zed)
                    {

                        ZedCreate = new AddZedCreateWindow();
                        ZedCreate.SquarePointer = this;
                        ZedCreate.DataContext = Token;
                        ZedCreate.Show();
                    }
                }

            }

            if (gmMenu.Name == "Warrior")
            {
                if (IsOpen)
                {

                    Token = new Warrior("Warrior");
                    addCharacter.DataContext = Token;
                    addCharacter.SquarePointer = this;
                    addCharacter.inventoryDataGrid.ItemsSource = Token.Inventory.itemList;
                    addCharacter.Image = GameImages.WarriorSource;
                    addCharacter.Show();

                    //  addCharacter.IQBox.DataContext = Token.IQ;

                }
            }
            else if (gmMenu.Name == "SharpShooter")
            {
                if (IsOpen)
                {
                    Token = new SharpShooter("SharpShooter");
                    addCharacter.DataContext = Token;
                    addCharacter.SquarePointer = this;
                    addCharacter.inventoryDataGrid.ItemsSource = Token.Inventory.itemList;
                    addCharacter.Image = GameImages.SharpShooterSource;
                    addCharacter.Show();

                    //Label l = new Label();
                    //Token = new SharpShooter("SharpShooter");
                    //l.Width = 50;
                    //l.Height = 50;
                    //ImageBrush brush = new ImageBrush();
                    //brush.ImageSource = new BitmapImage(new Uri("Images/SharpShooter.png", UriKind.Relative));
                    //l.Background = brush;
                    //IsOpen = false;
                    //this.Children.Add(l);
                }
            }
            else if (gmMenu.Name == "Survivalist")
            {
                if (IsOpen)
                {

                    Token = new Survivalist("Survivalist");
                    addCharacter.DataContext = Token;
                    addCharacter.SquarePointer = this;
                    addCharacter.inventoryDataGrid.ItemsSource = Token.Inventory.itemList;
                    addCharacter.Image = GameImages.SurvivalistSource;
                    addCharacter.Show();

                    //Label l = new Label();
                    //Token = new Survivalist("Surviver");
                    //l.Width = 48;
                    //l.Height = 45;

                    //ImageBrush brush = new ImageBrush();
                    //brush.ImageSource = new BitmapImage(new Uri("Images/Sur.png", UriKind.Relative));
                    //l.Background = brush;
                    //IsOpen = false;
                    //this.Children.Add(l);
                }
            }
            else if (gmMenu.Name == "Sloucher")
            {
                if (IsOpen)
                {

                    Token = new Sloucher("Sloucher");
                    ZedCreate.DataContext = Token;
                    ZedCreate.SquarePointer = this;
                    ZedCreate.Image = GameImages.SloucherSource;
                    ZedCreate.Show();

                    //Label l = new Label();
                    //Token = new Sloucher("Sloucher");
                    //l.Width = 40;
                    //l.Height = 40;
                    //ImageBrush brush = new ImageBrush();
                    //brush.ImageSource = new BitmapImage(new Uri("Images/Sloucher.png", UriKind.Relative));
                    //l.Background = brush;
                    //IsOpen = false;
                    //this.Children.Add(l);
                }
            }
            else if (gmMenu.Name == "FastAttack")
            {
                if (IsOpen)
                {

                    Token = new FastAttack("FastAttack");
                    ZedCreate.DataContext = Token;
                    ZedCreate.SquarePointer = this;
                    ZedCreate.Image = GameImages.FastAcctackSource;
                    ZedCreate.Show();

                    //Label l = new Label();
                    //Token = new FastAttack("FastAttack");
                    //l.Width = 40;
                    //l.Height = 40;
                    //ImageBrush brush = new ImageBrush();
                    //brush.ImageSource = new BitmapImage(new Uri("Images/FastAttack.png", UriKind.Relative));
                    //l.Background = brush;
                    //IsOpen = false;
                    //this.Children.Add(l);
                }
            }
            else if (gmMenu.Name == "Tank")
            {
                if (IsOpen)
                {
                    Token = new Tank("Tank");
                    ZedCreate.DataContext = Token;
                    ZedCreate.SquarePointer = this;
                    ZedCreate.Image = GameImages.TankSource;
                    ZedCreate.Show();
                    //Label l = new Label();
                    //Token = new Tank("Tank");
                    //l.Width = 40;
                    //l.Height = 40;
                    //ImageBrush brush = new ImageBrush();
                    //brush.ImageSource = new BitmapImage(new Uri("Images/Tank.png", UriKind.Relative));
                    //l.Background = brush;
                    //IsOpen = false;
                    //this.Children.Add(l);
                }
            }

            else if (gmMenu.Name == "Shank")
            {

                Token = new Shank("Shank");
                ZedCreate.DataContext = Token;
                ZedCreate.SquarePointer = this;
                ZedCreate.Image = GameImages.ShankSource;
                ZedCreate.Show();

                //Label l = new Label();
                //Token = new Shank("Shank");
                //l.Width = 40;
                //l.Height = 40;
                //ImageBrush brush = new ImageBrush();
                //brush.ImageSource = new BitmapImage(new Uri("Images/Shank.png", UriKind.Relative));
                //l.Background = brush;
                //IsOpen = false;
                //this.Children.Add(l);
            }

            else if (gmMenu.Name == "Spitter")
            {

                Token = new Spitter("Spitter");
                ZedCreate.DataContext = Token;
                ZedCreate.SquarePointer = this;
                ZedCreate.Image = GameImages.SpitterSource;
                ZedCreate.Show();

            }

            else if (gmMenu.Name == "SurvialKnife")
            {

                Label l = new Label();
                Items.Add(new SurvivalKnife());
                l.Width = 40;
                l.Height = 40;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/SurvivalKnife.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);

            }
            else if (gmMenu.Name == "SmallCrowbar")
            {
                Label l = new Label();
                Items.Add(new SmallCrowbar());
                l.Width = 40;
                l.Height = 40;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/SmallCrowBar.jpg", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "LargeCrowbar")
            {
                Label l = new Label();
                Items.Add(new LargeCrowbar());
                l.Width = 40;
                l.Height = 40;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/LargeCrowBar.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Machete")
            {
                Label l = new Label();
                Items.Add(new Machete());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Machete.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Sludgehammer")
            {
                Label l = new Label();
                Items.Add(new SludgeHammer());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/SludgeHammer.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Turret")
            {
                Label l = new Label();
                //Items.Add(new Turret());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Turret.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "BearTrap")
            {
                Label l = new Label();
                //Items.Add(new BearTrap());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/BearTrap.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Sportgun")
            {
                Label l = new Label();
                Items.Add(new Sport());
                // Token.Inventory.AddItem(new Sport());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Sport.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Rouge")
            {
                Label l = new Label();
                Items.Add(new Rouge());
                //Token.Inventory.AddItem(new Rouge());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Rouge.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Gangsta")
            {
                Label l = new Label();
                Items.Add(new Gangsta());
                // Token.Inventory.AddItem(new Gangsta());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Gangsta.jpg", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Defender")
            {
                Label l = new Label();
                Items.Add(new Defender());
                //Token.Inventory.AddItem(new Defender());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Defender.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Israeli")
            {
                Label l = new Label();
                Items.Add(new Israli());
                //Token.Inventory.AddItem(new Israli());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Israeli.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Milita")
            {
                Label l = new Label();
                Items.Add(new Milita());
                //Token.Inventory.AddItem(new Milita());
                l.Width = 55;
                l.Height = 55;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Milita.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Desert")
            {
                Label l = new Label();
                Items.Add(new Desert());
                //  Token.Inventory.AddItem(new Desert());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Desert.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Hunter")
            {
                Label l = new Label();
                Items.Add(new Hunter());
                //Token.Inventory.AddItem(new Hunter());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Hunter.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Sniper")
            {
                Label l = new Label();
                Items.Add(new Sniper());
                //Token.Inventory.AddItem(new Sniper());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Sniper.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Farmer")
            {
                Label l = new Label();
                Items.Add(new Farmer());
                //Token.Inventory.AddItem(new Farmer());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Farmer.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Ronin")
            {
                Label l = new Label();
                Items.Add(new Ronin());
                //Token.Inventory.AddItem(new Ronin());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Ronin.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Slugger")
            {
                Label l = new Label();
                Items.Add(new Slugger());
                //Token.Inventory.AddItem(new Slugger());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Slugger.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Special")
            {
                Label l = new Label();
                Items.Add(new Special());
                //Token.Inventory.AddItem(new Special());
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Special.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "HandgunAmmo")
            {
                Label l = new Label();
                Items.Add(new HandgunAmmo());
                //Token.Inventory.AddItem(new HandgunAmmo());
                l.Width = 50;
                l.Height = 43;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/HandgunAmmo.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "RifleAmmo")
            {
                Label l = new Label();
                Items.Add(new RifleAmmo());
                //Token.Inventory.AddItem(new RifleAmmo());
                l.Width = 50;
                l.Height = 43;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/RifleAmmo.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "ShotgunAmmo")
            {
                Label l = new Label();
                Items.Add(new ShotgunAmmo());
                //Token.Inventory.AddItem(new ShotgunAmmo());
                l.Width = 50;
                l.Height = 45;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/ShotgunAmmo.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "HealthPack")
            {
                Label l = new Label();
                //Items.Add(new HealthPack());
                l.Width = 50;
                l.Height = 45;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/HealthKit.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "HealthPot")
            {
                Label l = new Label();
                //Items.Add(new HealthPot());
                l.Width = 40;
                l.Height = 40;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/HealthPot.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
        }
예제 #3
0
        private void right_Clicked(object sender, System.Windows.RoutedEventArgs e)
        {
            MenuItem gmMenu;
            gmMenu = (MenuItem)sender;

            if (gmMenu.Name == "Warrior")
            {
                if (IsOpen)
                {
                    Label l = new Label();
                    Token = new Warrior("Warrior");
                    l.Width = 50;
                    l.Height = 45;
                    ImageBrush brush = new ImageBrush();
                    brush.ImageSource = new BitmapImage(new Uri("Images/War.png", UriKind.Relative));
                    l.Background = brush;
                    IsOpen = false;
                    this.Children.Add(l);
                }
            }
            else if (gmMenu.Name == "SharpShooter")
            {
                if (IsOpen)
                {
                    Label l = new Label();
                    Token = new SharpShooter("SharpShooter");
                    l.Width = 50;
                    l.Height = 50;
                    ImageBrush brush = new ImageBrush();
                    brush.ImageSource = new BitmapImage(new Uri("Images/SharpShooter.png", UriKind.Relative));
                    l.Background = brush;
                    IsOpen = false;
                    this.Children.Add(l);
                }
            }
            else if (gmMenu.Name == "Survivalist")
            {
                if (IsOpen)
                {
                    Label l = new Label();
                    Token = new Survivalist("Surviver");
                    l.Width = 48;
                    l.Height = 45;

                    ImageBrush brush = new ImageBrush();
                    brush.ImageSource = new BitmapImage(new Uri("Images/Sur.png", UriKind.Relative));
                    l.Background = brush;
                    IsOpen = false;
                    this.Children.Add(l);
                }
            }
            else if (gmMenu.Name == "Sloucher")
            {
                if (IsOpen)
                {
                    Label l = new Label();
                    Token = new Sloucher("Sloucher");
                    l.Width = 40;
                    l.Height = 40;
                    ImageBrush brush = new ImageBrush();
                    brush.ImageSource = new BitmapImage(new Uri("Images/Sloucher.png", UriKind.Relative));
                    l.Background = brush;
                    IsOpen = false;
                    this.Children.Add(l);
                }
            }
            else if (gmMenu.Name == "FastAttack")
            {
                if (IsOpen)
                {
                    Label l = new Label();
                    Token = new FastAttack("FastAttack");
                    l.Width = 40;
                    l.Height = 40;
                    ImageBrush brush = new ImageBrush();
                    brush.ImageSource = new BitmapImage(new Uri("Images/FastAttack.png", UriKind.Relative));
                    l.Background = brush;
                    IsOpen = false;
                    this.Children.Add(l);
                }
            }
            else if (gmMenu.Name == "Tank")
            {
                if (IsOpen)
                {
                    Label l = new Label();
                    Token = new Tank("Tank");
                    l.Width = 40;
                    l.Height = 40;
                    ImageBrush brush = new ImageBrush();
                    brush.ImageSource = new BitmapImage(new Uri("Images/Tank.png", UriKind.Relative));
                    l.Background = brush;
                    IsOpen = false;
                    this.Children.Add(l);
                }
            }

            else if (gmMenu.Name == "Shank")
            {
                Label l = new Label();
                Token = new Shank("Shank");
                l.Width = 40;
                l.Height = 40;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Shank.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = false;
                this.Children.Add(l);
            }

            else if (gmMenu.Name == "Spitter")
            {
                Label l = new Label();
                Token = new Spitter("Spitter");
                l.Width = 40;
                l.Height = 40;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Spitter.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = false;
                this.Children.Add(l);
            }

            else if (gmMenu.Name == "SurvialKnife")
            {
                //create new survival knife
                //add to grid
                //add to list
                Label l = new Label();
                //Items = new SurvivalKnife();
                l.Width = 40;
                l.Height = 40;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/SurvivalKnife.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);

            }
            else if (gmMenu.Name == "SmallCrowbar")
            {
                Label l = new Label();
                //Items = new SmallCrowbar();
                l.Width = 40;
                l.Height = 40;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/SmallCrowBar.jpg", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "LargeCrowbar")
            {
                Label l = new Label();
                //	Items = new LargeCrowbar();
                l.Width = 40;
                l.Height = 40;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/LargeCrowBar.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Machete")
            {
                Label l = new Label();
                //Items = new Machete();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Machete.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Sludgehammer")
            {
                Label l = new Label();
                //Items = new SludgeHammer();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/SludgeHammer.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Turret")
            {
                Label l = new Label();
                //Items = new Turret();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Turret.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "BearTrap")
            {
                Label l = new Label();
                //Items = new BearTrap();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/BearTrap.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Sportgun")
            {
                Label l = new Label();
                //Items = new Sport();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Sport.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Rouge")
            {
                Label l = new Label();
                //Items = new Rouge();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Rouge.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Gangsta")
            {
                Label l = new Label();
            //	Items = new Gangsta();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Gangsta.jpg", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Defender")
            {
                Label l = new Label();
                //Items = new Defender();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Defender.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Israeli")
            {
                Label l = new Label();
                //Items = new Israli();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Israeli.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Milita")
            {
                Label l = new Label();
                //Items = new Milita();
                l.Width = 55;
                l.Height = 55;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Milita.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Desert")
            {
                Label l = new Label();
                //Items = new Desert();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Desert.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Hunter")
            {
                Label l = new Label();
                //Items = new Hunter();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Hunter.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Sniper")
            {
                Label l = new Label();
                //Items = new Sniper();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Sniper.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Farmer")
            {
                Label l = new Label();
            //	Items = new Farmer();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Farmer.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Ronin")
            {
                Label l = new Label();
            //	Items = new Ronin();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Ronin.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Slugger")
            {
                Label l = new Label();
                //Items = new Slugger();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Slugger.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "Special")
            {
                Label l = new Label();
                //Items = new Special();
                l.Width = 50;
                l.Height = 50;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/Special.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "HandgunAmmo")
            {
                Label l = new Label();
                //Items = new HandgunAmmo();
                l.Width = 50;
                l.Height = 43;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/HandgunAmmo.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "RifleAmmo")
            {
                Label l = new Label();
                //Items = new RifleAmmo();
                l.Width = 50;
                l.Height = 43;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/RifleAmmo.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "ShotgunAmmo")
            {
                Label l = new Label();
                //Items = new ShotgunAmmo();
                l.Width = 50;
                l.Height = 45;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/ShotgunAmmo.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "HealthPack")
            {
                Label l = new Label();
            //	Items = new HealthPack();
                l.Width = 50;
                l.Height = 45;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/HealthKit.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
            else if (gmMenu.Name == "HealthPot")
            {
                Label l = new Label();
                //Items = new HealthPot();
                l.Width = 40;
                l.Height = 40;
                ImageBrush brush = new ImageBrush();
                brush.ImageSource = new BitmapImage(new Uri("Images/HealthPot.png", UriKind.Relative));
                l.Background = brush;
                IsOpen = true;
                this.Children.Add(l);
            }
        }