Esempio n. 1
0
 protected Behavior(Tank tank)
 {
     this.tank = tank;
     tank.MoveSpeed = Tank.MaxMoveSpeed;
 }
Esempio n. 2
0
 public SteeringBehavior(Tank tank)
     : base(tank)
 {
 }
Esempio n. 3
0
 public LinearBehavior(Tank tank)
     : base(tank)
 {
 }
Esempio n. 4
0
        /// <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);
        }
 public SteeringBehavior(Tank tank)
     : base(tank)
 {
 }
Esempio n. 6
0
 public LinearBehavior(Tank tank)
     : base(tank)
 {
 }