Esempio n. 1
0
 public virtual void Draw(CharPixel pixel)
 {
     if (Painter != null)
     {
         Painter.Draw(pixel);
     }
 }
        public void Draw(IPainter <Color> painter, Point location, float scale)
        {
            var currentTexture = GetCurrentTexture();

            var texture = new Texture(currentTexture);

            painter.Draw(texture, location, scale, Color.White);
        }
Esempio n. 3
0
        public void Update(float delayTime)
        {
            GameContext.Update(delayTime);
            spaceStore.Update();
            spaceUpdater.Update(spaceStore.GetGameObjects().ToList(), delayTime);
            var sprites = spaceStore.GetGameObjects().Where(o => o.Sprite != null).Select(o =>
            {
                o.Sprite.TransformToGameObject(o);
                return(o.Sprite);
            });

            painter.Draw(sprites, spaceStore.Camera);
        }
Esempio n. 4
0
        public void t2()
        {
            CowboyPainter cp = new CowboyPainter();

            IPainter cPAINTER = cp;

            cPAINTER.Draw();

            ICowboy COWBOYp = cp;

            COWBOYp.Draw();

            (cp as IPainter).Draw();
            (cp as ICowboy).Draw();
        }
Esempio n. 5
0
 public virtual void Draw(IPainter painter)
 {
   painter.Draw(this);
 }
Esempio n. 6
0
 public virtual void Draw(IPainter painter)
 {
     painter.Draw(this);
 }
Esempio n. 7
0
 public void Draw(IPainter painter)
 {
     painter.Draw(_BufferedGraphics.Graphics);
 }