예제 #1
0
        public Horseman(GraphicsDeviceManager g, Vector2 pos, Vector2 dir)
        {
            graphics  = g;
            position  = pos;
            direction = dir;

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

            moveBehaviour = new YWalk();
        }
예제 #2
0
        public Horseman(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.LightGreen });

            moveBehaviour = new YWalk();
        }
예제 #3
0
        public Horseman(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 YWalk();
            #endregion
        }