public void ChangeForm(HEnum.GeometryTyp pType)
 {
     State = pType;
     switch (State)
     {
         case HEnum.GeometryTyp.Strich: SetMultiplyer(1.0f, 0.6f);
             _rotationSpeed = 10;
             break;
         case HEnum.GeometryTyp.Viereck: SetMultiplyer(1.0f, 0.7f); //(0.85f, 0.7f)
             _rotationSpeed = 3;
             break;
         case HEnum.GeometryTyp.Sechseck: SetMultiplyer(1.0f, 1.0f);
             _rotationSpeed = 10;
             break;
         case HEnum.GeometryTyp.Kreis: SetMultiplyer(1.0f, 1.0f);
             _rotationSpeed = 10;
             break;
     }
 }
 public void ChangeForm(HEnum.GeometryTyp pType)
 {
     Typ = pType;
     _typSettings.ChangeForm(Typ);
     _acceleration = _typSettings.Acceleration;
     _maxSpeed = _typSettings.Speed;
 }
        public void SwitchForm(int id)
        {
            if (id >= 0 && id <= 3 && (id <= _actUpgradeStage))
            {
                Typ = (HEnum.GeometryTyp)id;
                _typSettings.ChangeForm(Typ);
                _acceleration = _typSettings.Acceleration;
                _maxSpeed = _typSettings.Speed;
                _playIndex = id;

                animIdleLastFrame = (int)TextureManager.Instance.GetIdleSprite(id).Width / 96;

                _startChangeCloud = true;

                switch (id)
                {
                    case 0: 
                        _origin = new Vector2(24, 48);
                        //_hitbox.Width = 48;
                        _hitbox.Width = 40;
                        //_position.X += 24;
                        //_hitbox.X += 24;
                        break;
                    case 1: 
                        _hitbox.Width = 96;
                        SnapOnGrid();
                        break;
                    case 2: 
                        _origin = new Vector2(48, 48);
                        _hitbox.Width = 96;
                        break;
                    case 3: 
                        _origin = new Vector2(48, 48);
                        _hitbox.Width = 96;
                        break;
                }

                _hitboxNew.Width = _hitbox.Width;
                _typSettings.Rotation = 0;
            }
        }
        public HPlayer(Vector2 pPosition, String pName)
        {
            this._position = pPosition;
            this._textureName = pName;
            _hitbox = new Rectangle((int)_position.X, (int)_position.Y, TextureManager.Instance.GetPlayerSprite(_playIndex).Width, TextureManager.Instance.GetPlayerSprite(_playIndex).Height);
            _hitboxNew = _hitbox;

            _changeCloud = new HAnimatedSprite(_position, "changeCloud", 5, 2, 0.02f);

            Typ = HEnum.GeometryTyp.Strich;
            _typSettings.ChangeForm(Typ);
            _acceleration = _typSettings.Acceleration;
            _maxSpeed = _typSettings.Speed;
        }