示例#1
0
        public StandardCharacter()
        {
            _moveSpeed = 5;
            _moveSpeedX = _moveSpeed;     // animation move speed
            _moveSpeedY = _moveSpeed;     // animation move speed\

            _currentFacingDirection = HorizontalDirectionEnum.Right;

            _command = new Idle();

            _animations = new Heroes.Core.Battle.Characters.Armies.ArmyAnimations();

            _isBeginTurn = false;
            _isEndTurn = false;

            _isDead = false;

            _currentAnimationSeq = null;
        }
示例#2
0
        public void Initalize()
        {
            _action = CreateFirstStandingAction(this, _currentFacingDirection);
            SetAnimation(_action._currentAnimationSeq);

            //_currentAnimationRunner = _currentAnimation.CreateRunner();
            //StoredEffectColor = Color.White

            if (_command == null)
            {
                _command = new Idle();
            }
        }
示例#3
0
文件: Spell.cs 项目: sakseichek/homm
        private void Init()
        {
            _animations = new SpellAnimations();

            _command = new Idle();

            _defaultMoveSpeed = 40;
            _moveSpeedX = _defaultMoveSpeed;
            _moveSpeedY = _defaultMoveSpeed;
        }