Exemple #1
0
        private void Draw_Tanks(PaintEventArgs e)
        {
            StringFormat sf         = new StringFormat();
            var          myPassport = ClientEngine.GetPassport();

            foreach (var i in Map.Tanks)
            {
                if (i.Tank_ID == myPassport)
                {
                    e.Graphics.DrawImage(Player[i.Direction], i.Position);
                }
                else
                {
                    e.Graphics.DrawImage(Enemies[i.Direction], i.Position);
                }

                Draw_HP_Lines(e);
                Draw_Lifes(e);
                Draw_Names(e);
            }
        }