Exemplo n.º 1
0
        public Clockworkbeast(GraphicsDeviceManager g, Vector2 pos, Vector2 dir)
        {
            graphics  = g;
            position  = pos;
            direction = dir;

            pixel = new Texture2D(graphics.GraphicsDevice, 1, 1);
            pixel.SetData(new Color[] { Color.MediumPurple });

            moveBehaviour = new CircleWalk(position);
        }
Exemplo n.º 2
0
        public Clockworkbeast(GraphicsDeviceManager g, Vector2 pos, Vector2 dir, TownCenter tc)
        {
            graphics   = g;
            position   = pos;
            direction  = dir;
            towncenter = tc;

            pixel = new Texture2D(graphics.GraphicsDevice, 1, 1);
            pixel.SetData(new Color[] { Color.LightPink });

            moveBehaviour = new CircleWalk(position, 50);
        }
Exemplo n.º 3
0
        public Clockworkbeast(GraphicsDeviceManager g, Vector2 pos, Vector2 dir)
        {
            graphics  = g;
            position  = pos;
            direction = dir;

            pixel = new Texture2D(graphics.GraphicsDevice, 1, 1);
            pixel.SetData(new Color[] { Color.LightGreen });

            moveBehaviour = new CircleWalk();
            oldBehaviour  = moveBehaviour;
        }
Exemplo n.º 4
0
        public Clockworkbeast(GraphicsDeviceManager g, Vector2 pos, Vector2 dir)
        {
            graphics  = g;
            position  = pos;
            direction = dir;

            pixel = new Texture2D(graphics.GraphicsDevice, 1, 1);
            pixel.SetData(new Color[] { Color.LightGreen });

            #region Strategy Pattern
            moveBehaviour = new CircleWalk(position);
            #endregion
        }