예제 #1
0
 public void Print(Universe.Screen screen)
 {
     for (int i = 0; i < bullets.Count; ++i)
     {
         bullets[i].Print(screen);
     }
 }
예제 #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"));
            }
        }
예제 #3
0
파일: Bag.cs 프로젝트: 1jonathan123/Server
        public void Print(Universe.Screen screen)
        {
            foreach (Weapon weapon in weapons)
            {
                weapon.Print(screen);
            }

            launcher.Print(screen);
        }
예제 #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);
        }
예제 #5
0
 public void Print(Universe.Screen screen)
 {
 }
예제 #6
0
 public void Print(Universe.Screen screen)
 {
     screen.Add(body);
 }