예제 #1
0
 public House(Vector2 position)
 {
     this.Position = position;
     this._size = new Vector2(224, 144);
     this._drawOrder = -1;
     _spriteSet = new AnimatedSpriteSet("house.png", (int)_size.X, (int)_size.Y);
 }
예제 #2
0
 public Tree(Vector2 position)
 {
     this.Position = position;
     this._size = new Vector2(64, 80);
     this._drawOrder = -1;
     _spriteSet = new AnimatedSpriteSet("tree.png", (int)_size.X, (int)_size.Y);
 }
예제 #3
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;
 }
예제 #4
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();
 }
예제 #5
0
        public Helper(World world)
        {
            MaxSpeed = 200;
            Mass = 1;
            IsVisible = true;

            _sprite = new AnimatedSpriteSet("helper.png", 32, 64);
            _isSteering = false;
            _world = world;
            _goal = new HelperThinkGoal(this, _world);
        }