Esempio n. 1
0
 /// クリア
 public void End()
 {
     playId           = 0;
     useActor         = null;
     useInterfereCntr = null;
     useCollMgr       = null;
 }
Esempio n. 2
0
        public void FrameGravity2d(ref bool flag)
        {
            if (useCollMgr != null)
            {
                do
                {
                    useCollMgr.MoveShape.SetMult(baseMtx);
                    Vector3 movePos = StaticDataList.getVectorZero();
                    calCollGrav.GetMovePos(useCollMgr, ref movePos);

                    if (calCollGrav.Check(useCollMgr, movePos) == true)
                    {
                        basePos = calCollGrav.NextPos;
                        break;
                        /// OBJに接地
                    }
                    if (calCollGrav.TouchPos0() == true)
                    {
                        basePos = calCollGrav.NextPos;
                        break;
                    }
                    basePos = calCollGrav.NextPos;
                    Common.MatrixUtil.SetTranslate(ref baseMtx, basePos);
                }while(flag == true);
                flag = false;
            }
            Common.MatrixUtil.SetTranslate(ref baseMtx, basePos);
            playId     &= ~PlayId.Move2d;
            isUpdateMtx = true;
        }
Esempio n. 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayRoundNumber != 0L)
            {
                hash ^= PlayRoundNumber.GetHashCode();
            }
            if (Amount != 0L)
            {
                hash ^= Amount.GetHashCode();
            }
            if (Award != 0L)
            {
                hash ^= Award.GetHashCode();
            }
            if (IsComplete != false)
            {
                hash ^= IsComplete.GetHashCode();
            }
            if (playId_ != null)
            {
                hash ^= PlayId.GetHashCode();
            }
            if (BingoRoundNumber != 0L)
            {
                hash ^= BingoRoundNumber.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 4
0
        /// フレーム処理:移動
        private void frameMove2d()
        {
            if (useCollMgr != null)
            {
                calCollMove.SetMoveType(Data.CollTypeId.littleMove);

                useCollMgr.MoveShape.SetMult(baseMtx);
                Vector3 movePos = StaticDataList.getVectorZero();
                calCollMove.GetMovePos(useCollMgr, calCollGrav.TreadVec, (moveVec * movePow), ref movePos);
                basePos = movePos;
                for (int checkCnt = 0; checkCnt < 4; checkCnt++)
                {
                    if (calCollMove.Check(useCollMgr, movePos) == true)
                    {
                        movePos = calCollMove.NextPos;
                    }
                    else
                    {
                        basePos = calCollMove.NextPos;
                        break;
                    }
                }
            }
            else
            {
                basePos = (moveVec * movePow) + basePos;
            }

            Common.MatrixUtil.SetTranslate(ref baseMtx, basePos);

            playId     &= ~PlayId.Move2d;
            isUpdateMtx = true;
        }
Esempio n. 5
0
/// private メソッド
///---------------------------------------------------------------------------

        /// フレーム処理:旋回
        private void frameTurn()
        {
            baseRot.Y += rotPow;
            setMtxRotateEulerXYZ(baseRot);

            playId     &= ~PlayId.Turn;
            isUpdateMtx = true;
        }
Esempio n. 6
0
        /// 開始
        public void Start(GameActorProduct useActor, GameActorContainer useInterfereCntr, GameActorCollManager useCollMgr)
        {
            basePos = new Vector3(0.0f, 0.0f, 0.0f);
            baseRot = new Vector3(0.0f, 0.0f, 0.0f);

            setMtxRotateEulerXYZ(baseRot);

            Common.MatrixUtil.SetTranslate(ref baseMtx, basePos);

            playId = 0;

            this.useActor         = useActor;
            this.useInterfereCntr = useInterfereCntr;
            this.useCollMgr       = useCollMgr;
        }
Esempio n. 7
0
        /// 重力処理
        public void FrameGravity(bool flag)
        {
            if (useCollMgr != null)
            {
                useCollMgr.MoveShape.SetMult(baseMtx);
                Vector3 movePos = StaticDataList.getVectorZero();
                calCollGrav.GetMovePos(useCollMgr, ref movePos);

                if (calCollGrav.Check(useCollMgr, movePos) == true)
                {
                    /// OBJに接地
                    basePos = calCollGrav.NextPos;
                }
                else
                {
                    //設置していない
                }
            }
            Common.MatrixUtil.SetTranslate(ref baseMtx, basePos);
            playId     &= ~PlayId.Move;
            isUpdateMtx = true;
        }
Esempio n. 8
0
 public void MergeFrom(BoutInformation other)
 {
     if (other == null)
     {
         return;
     }
     if (other.PlayRoundNumber != 0L)
     {
         PlayRoundNumber = other.PlayRoundNumber;
     }
     if (other.Amount != 0L)
     {
         Amount = other.Amount;
     }
     if (other.Award != 0L)
     {
         Award = other.Award;
     }
     if (other.IsComplete != false)
     {
         IsComplete = other.IsComplete;
     }
     if (other.playId_ != null)
     {
         if (playId_ == null)
         {
             PlayId = new global::AElf.Types.Hash();
         }
         PlayId.MergeFrom(other.PlayId);
     }
     if (other.BingoRoundNumber != 0L)
     {
         BingoRoundNumber = other.BingoRoundNumber;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Esempio n. 9
0
        public void FrameGravity2d(ref bool flag)
        {
            if( useCollMgr != null ){
            do{
                useCollMgr.MoveShape.SetMult(baseMtx);
                Vector3 movePos = StaticDataList.getVectorZero();
                calCollGrav.GetMovePos( useCollMgr, ref movePos );

                if( calCollGrav.Check( useCollMgr, movePos ) == true ){
                    basePos = calCollGrav.NextPos;
                    break;
                    /// OBJに接地
                }
                if(calCollGrav.TouchPos0() == true){
                    basePos = calCollGrav.NextPos;
                    break;
                }
                basePos = calCollGrav.NextPos;
                Common.MatrixUtil.SetTranslate( ref baseMtx, basePos );
            }while(flag == true);
            flag = false;
            }
            Common.MatrixUtil.SetTranslate( ref baseMtx, basePos );
            playId        &= ~PlayId.Move2d;
            isUpdateMtx    = true;
        }
Esempio n. 10
0
 /// クリア
 public void End()
 {
     playId              = 0;
     useActor            = null;
     useInterfereCntr    = null;
     useCollMgr          = null;
 }
Esempio n. 11
0
 /// 旋回
 public void SetTurn(float rot, int endFrame)
 {
     this.rotPow  = rot;
     this.playId |= PlayId.Turn;
 }
Esempio n. 12
0
        /// フレーム処理:移動
        private void frameMoveActor()
        {
            if( useCollMgr != null ){
            calCollMove.SetMoveType(Data.CollTypeId.ChMove);

            useCollMgr.MoveShape.SetMult(baseMtx);
            Vector3 movePos = StaticDataList.getVectorZero();
            calCollMove.GetMovePos( useCollMgr, calCollGrav.TreadVec, (moveVec * movePow), ref movePos );
            basePos = movePos;

            for( int checkCnt=0; checkCnt<4; checkCnt++ ){
                if( calCollMove.Check( useCollMgr, movePos) == true ){
                    movePos = calCollMove.NextPos;
                }
                else{
                    basePos = calCollMove.NextPos;
                    break;
                }
            }
            }
            else{
            basePos    = (moveVec * movePow) + basePos;
            }

            Common.MatrixUtil.SetTranslate( ref baseMtx, basePos );

            playId        &= ~PlayId.MoveBreak;
            isUpdateMtx    = true;
        }
Esempio n. 13
0
        /// private メソッド
        ///---------------------------------------------------------------------------
        /// フレーム処理:旋回
        private void frameTurn()
        {
            baseRot.Y += rotPow;
            setMtxRotateEulerXYZ( baseRot );

            playId        &= ~PlayId.Turn;
            isUpdateMtx    = true;
        }
Esempio n. 14
0
 /// 旋回
 public void SetTurn( float rot, int endFrame )
 {
     this.rotPow             = rot;
     this.playId            |= PlayId.Turn;
 }
Esempio n. 15
0
        /// 開始
        public void Start( GameActorProduct useActor, GameActorContainer useInterfereCntr, GameActorCollManager useCollMgr )
        {
            basePos        = new Vector3( 0.0f, 0.0f, 0.0f );
            baseRot        = new Vector3( 0.0f, 0.0f, 0.0f );

            setMtxRotateEulerXYZ( baseRot );

            Common.MatrixUtil.SetTranslate( ref baseMtx, basePos );

            playId        = 0;

            this.useActor            = useActor;
            this.useInterfereCntr    = useInterfereCntr;
            this.useCollMgr          = useCollMgr;
        }
Esempio n. 16
0
 /// 指定の向きに向く
 public void SetRot( float rot )
 {
     this.rotPow            = 0.0f;
     this.baseRot.Y         = rot;
     this.playId           |= PlayId.Turn;
 }
Esempio n. 17
0
 public void SetStand2d()
 {
     this.playId         |= PlayId.Move2d;
 }
Esempio n. 18
0
 public void SetMoveActor( Vector3 vec, float pow )
 {
     this.moveVec         = vec;
     this.movePow         = pow;
     this.playId         |= PlayId.MoveBreak;
 }
Esempio n. 19
0
 /// 指定の向きに向く
 public void SetRot(float rot)
 {
     this.rotPow    = 0.0f;
     this.baseRot.Y = rot;
     this.playId   |= PlayId.Turn;
 }
Esempio n. 20
0
        /// 重力処理
        public void FrameGravity(bool flag)
        {
            if( useCollMgr != null ){
            useCollMgr.MoveShape.SetMult(baseMtx);
            Vector3 movePos = StaticDataList.getVectorZero();
            calCollGrav.GetMovePos( useCollMgr, ref movePos );

            if( calCollGrav.Check( useCollMgr, movePos ) == true ){
                /// OBJに接地
                basePos = calCollGrav.NextPos;
            }else{
                //設置していない
            }
            }
            Common.MatrixUtil.SetTranslate( ref baseMtx, basePos );
            playId        &= ~PlayId.Move;
            isUpdateMtx    = true;
        }
Esempio n. 21
0
 public void SetMove2d(Vector3 vec, float pow)
 {
     this.moveVec = vec;
     this.movePow = pow;
     this.playId |= PlayId.Move2d;
 }
Esempio n. 22
0
 public void SetStand2d()
 {
     this.playId |= PlayId.Move2d;
 }