Exemple #1
0
 public void Print(Universe.Screen screen)
 {
     for (int i = 0; i < bullets.Count; ++i)
     {
         bullets[i].Print(screen);
     }
 }
Exemple #2
0
        public void Print(Universe.Screen screen, bool isMate, bool isMe)
        {
            bag.Print(screen);
            screen.Add(body);

            double bound = Model.Models[body.modelID].BoundRadius * 1.5;

            screen.Add(new Text(name, body.position - new Vector(0, bound * 1.2), 24, "white"));

            screen.Add(new Rect(body.position + new Vector(0, bound * 1.2),
                                new Vector(bound * 2, bound / 5), "black"));

            screen.Add(new Rect(body.position + new Vector(-bound * (1 - hp / maxHp), bound * 1.2),
                                new Vector(bound * 2 * (hp / maxHp), bound / 5), isMate ? "#0000AA" : "#AA0000"));

            if (isMe)
            {
                screen.Add(new Rect(body.position + new Vector(0, 250),
                                    new Vector(200, 20), "black"));

                screen.Add(new Rect(body.position + new Vector(-100 * (1 - bag.Primary.Loading), 250),
                                    new Vector(200 * bag.Primary.Loading, 20), "#EEEEEE"));

                screen.Add(new Rect(body.position + new Vector(0, 300),
                                    new Vector(300, 50), "black"));

                screen.Add(new Text("Weapon" + (bag.PrimaryIndex + 1) + ": " + bag.Primary.Name + "  |  " + "Money: " + money, body.position + new Vector(0, 300), 16, "white"));
            }
        }
Exemple #3
0
        public void Print(Universe.Screen screen)
        {
            foreach (Weapon weapon in weapons)
            {
                weapon.Print(screen);
            }

            launcher.Print(screen);
        }
Exemple #4
0
        public void GetBytes(Contact.Bytes bytes)
        {
            Universe.Screen screen = new Universe.Screen(null);

            foreach (IShape shape in shapes)
            {
                screen.Add(shape);
            }

            screen.GetBytes(bytes);
        }
Exemple #5
0
 public void Print(Universe.Screen screen)
 {
 }
Exemple #6
0
 public void Print(Universe.Screen screen)
 {
     screen.Add(body);
 }