Esempio n. 1
0
        /// フレーム処理
        public bool Frame()
        {
            if (effId == EffId.Non)
            {
                effActiveFlg = false;
                return(false);
            }

            switch (effId)
            {
            case EffId.FadeIn:
                fadeAlpha -= fadeSpeed;
                if (fadeAlpha < 0)
                {
                    effId = EffId.Non;
                }
                break;

            case EffId.FadeOut:
                fadeAlpha += fadeSpeed;
                if (fadeAlpha > 0xff)
                {
                    fadeAlpha    = 0xff;
                    effId        = EffId.FadeWait;
                    effActiveFlg = true;
                }
                break;
            }

            return(!effActiveFlg);
        }
Esempio n. 2
0
 /// フェードアウトのセット
 public void SetFadeOut(uint col, int speed, bool active)
 {
     effId        = EffId.FadeOut;
     fadeColor    = col;
     fadeAlpha    = 0x0;
     fadeSpeed    = speed;
     effActiveFlg = active;
 }
Esempio n. 3
0
        /// フレーム処理
        public bool Frame()
        {
            if( effId == EffId.Non ){
            effActiveFlg = false;
            return false;
            }

            switch( effId ){
            case EffId.FadeIn:
            fadeAlpha -= fadeSpeed;
            if( fadeAlpha < 0 ){
                effId = EffId.Non;
            }
            break;

            case EffId.FadeOut:
            fadeAlpha += fadeSpeed;
            if( fadeAlpha > 0xff ){
                fadeAlpha = 0xff;
                effId = EffId.FadeWait;
                effActiveFlg = true;
            }
            break;
            }

            return !effActiveFlg;
        }
Esempio n. 4
0
 /// フェードアウトのセット
 public void SetFadeOut( uint col, int speed, bool active )
 {
     effId            = EffId.FadeOut;
     fadeColor        = col;
     fadeAlpha        = 0x0;
     fadeSpeed        = speed;
     effActiveFlg     = active;
 }
Esempio n. 5
0
 /// public メソッド
 ///---------------------------------------------------------------------------
 /// 初期化
 public bool Init()
 {
     effId           = EffId.Non;
     effActiveFlg    = false;
     return true;
 }
Esempio n. 6
0
/// public メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public bool Init()
        {
            effId        = EffId.Non;
            effActiveFlg = false;
            return(true);
        }