protected Behavior(Tank tank) { this.tank = tank; tank.MoveSpeed = Tank.MaxMoveSpeed; }
public SteeringBehavior(Tank tank) : base(tank) { }
public LinearBehavior(Tank tank) : base(tank) { }
/// <summary> /// Construct a WaypointSample object /// </summary> public WaypointSample() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; graphics.PreferredBackBufferWidth = screenWidth; graphics.PreferredBackBufferHeight = screenHeight; tank = new Tank(this); Components.Add(tank); }