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); }
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); }
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; }
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 }