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