/// クリア public void End() { playId = 0; useActor = null; useInterfereCntr = null; useCollMgr = null; }
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; }
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); }
/// フレーム処理:移動 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; }
/// private メソッド ///--------------------------------------------------------------------------- /// フレーム処理:旋回 private void frameTurn() { baseRot.Y += rotPow; setMtxRotateEulerXYZ(baseRot); playId &= ~PlayId.Turn; isUpdateMtx = true; }
/// 開始 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; }
/// 重力処理 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; }
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); }
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; }
/// 旋回 public void SetTurn(float rot, int endFrame) { this.rotPow = rot; this.playId |= PlayId.Turn; }
/// フレーム処理:移動 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; }
/// private メソッド ///--------------------------------------------------------------------------- /// フレーム処理:旋回 private void frameTurn() { baseRot.Y += rotPow; setMtxRotateEulerXYZ( baseRot ); playId &= ~PlayId.Turn; isUpdateMtx = true; }
/// 旋回 public void SetTurn( float rot, int endFrame ) { this.rotPow = rot; this.playId |= PlayId.Turn; }
/// 開始 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; }
/// 指定の向きに向く public void SetRot( float rot ) { this.rotPow = 0.0f; this.baseRot.Y = rot; this.playId |= PlayId.Turn; }
public void SetStand2d() { this.playId |= PlayId.Move2d; }
public void SetMoveActor( Vector3 vec, float pow ) { this.moveVec = vec; this.movePow = pow; this.playId |= PlayId.MoveBreak; }
/// 指定の向きに向く public void SetRot(float rot) { this.rotPow = 0.0f; this.baseRot.Y = rot; this.playId |= PlayId.Turn; }
/// 重力処理 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; }
public void SetMove2d(Vector3 vec, float pow) { this.moveVec = vec; this.movePow = pow; this.playId |= PlayId.Move2d; }