Esempio n. 1
0
        private float _attackSpeed;           //Movement speed when attacking

        public CBaseKeese(int foh, params dropRate[] drops)
            : base(drops)
        {
            _hearingRadius = foh;
            image          = _imageIndex["keeseIdle"];
            _state         = "idle";
            _followRoot    = false;

            _attacking  = false;
            _attacked   = false;
            _attackTime = 0;

            _movementSpeed = 1f;
            _attackSpeed   = 1.5f;

            _type = KEESETYPE.NORMAL;
            _dirChangeProbability = 0.10;

            _flyTimeMax = 360; //6 seconds
            _flyTimeMin = 60;  //1 second
            _flyTime    = 0;

            _groundTimeMax = 180; //3 seconds
            _groundTimeMin = 60;  //1 second
            _groundTime    = 0;

            _attackVector = new Vector2();
            _attacking    = false;
        }
Esempio n. 2
0
        public CBaseKeese(int foh, params dropRate[] drops)
            : base(drops)
        {
            _hearingRadius = foh;
            image          = _imageIndex["keeseIdle"];
            _state         = ACTOR_STATES.IDLE;
            _followRoot    = false;

            _attacking  = false;
            _attacked   = false;
            _attackTime = 0;

            _movementSpeed = 1f;
            _attackSpeed   = 1.5f;

            _type = KEESETYPE.NORMAL;
            _dirChangeProbability = 0.10;

            _flyTimeMax = 360; //6 seconds
            _flyTimeMin = 60;  //1 second
            _flyTime    = 0;

            _groundTimeMax = 180; //3 seconds
            _groundTimeMin = 60;  //1 second
            _groundTime    = 0;

            _attackVector = new Vector2();
            _attacking    = false;

            if (!Graphics.CTextures.rawTextures.ContainsKey(_SPRITE_NAMESPACE))
            {
                Graphics.CTextures.addRawTexture(_SPRITE_NAMESPACE, "keese");
            }

            _keeseCount += 1;
        }