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; }
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(); }
/// <summary> /// Construct a steering behavior that seeks the specified target. /// </summary> public FleeSteering(Entity target) { this._target = target; this._seekAtSteering = new SeekAtSteering(); }