Пример #1
0
 public Adventurer(World world)
 {
     this._keyboardSteering = new KeyboardSteering();
     this._seekAtSteering = new SeekAtSteering();
     this._spriteSet = new AnimatedSpriteSet("adventurer.png", 32, 64);
     this._world = world;
     Mass = 1;
     MaxSpeed = 400;
 }
Пример #2
0
 public Explorer(World world)
 {
     this.Mass = 1;
     this.MaxSpeed = 100;
     this._speedBoost = 1;
     this._graph = world.Graph;
     this._steering = new SeekAtSteering();
     this._sprite = new AnimatedSpriteSet("explorer.png", 32, 64);
     Initialize();
 }
Пример #3
0
 /// <summary>
 /// Construct a steering behavior that seeks the specified target.
 /// </summary>
 public FleeSteering(Entity target)
 {
     this._target = target;
     this._seekAtSteering = new SeekAtSteering();
 }