Пример #1
0
        void ClickToCreakZombie()       //测试性生成僵尸功能
        {
            NormalZombie normalZombie = zombieFactory.CreatZombie(BitmapManager.NormalZombieBitmaps);

            normalZombie.m_g = g;
            normalZombie.SetDrawFactory();
            Zombielist.Add(normalZombie);
        }
Пример #2
0
 public void DrawItem(IDrawFactory drawFactory, Graphics g, NormalZombie normalZombie)
 {
     drawFactory.TargetDraw(normalZombie.bitmap, g, normalZombie.Location.X, normalZombie.Location.Y);
 }
Пример #3
0
        public NormalZombie CreatZombie(Bitmap[] bitmaps)
        {
            NormalZombie normalZombie = new NormalZombie(bitmaps);

            return(normalZombie);
        }