Example #1
0
        /// イベントの再生
        public void Play(GameActorProduct trgActor, GameActorEventContainer eveCntr)
        {
            if (eveCntr.Num > 0)
            {
                GameCtrlManager ctrlResMgr = GameCtrlManager.GetInstance();

                for (int i = 0; i < eveCntr.Num; i++)
                {
                    GameObjProduct trgObj = eveCntr.GetEntryObj(i);

                    /// ダメージ
                    if (eveCntr.GetEventId(i) == ActorEventId.Damage)
                    {
                        trgActor.SetEventDamage(trgObj, (Data.AttackTypeId)eveCntr.GetEntryAtb(i));
                    }

                    /// エフェクト再生
                    else if (eveCntr.GetEventId(i) == ActorEventId.Effect)
                    {
                        if (trgObj != null)
                        {
                            ctrlResMgr.CtrlEffect.EntryEffect((Data.EffTypeId)eveCntr.GetEntryAtb(i), trgObj);
                        }
                        else
                        {
                            ctrlResMgr.CtrlEffect.EntryEffect((Data.EffTypeId)eveCntr.GetEntryAtb(i), eveCntr.GetTrgPos(i));
                        }
                    }

                    /// 相手の方へ向く
                    else if (eveCntr.GetEventId(i) == ActorEventId.LookTrg)
                    {
                        trgActor.SetLookTrgPos(eveCntr.GetTrgPos(i));
                    }

                    /// 相手の方へ振り向く
                    else if (eveCntr.GetEventId(i) == ActorEventId.TurnTrg)
                    {
                        if (trgObj != null)
                        {
                            trgActor.SetEventTurnPos(new Vector3(trgObj.Mtx.M41, trgObj.Mtx.M42, trgObj.Mtx.M43), eveCntr.GetEntryAtb(i));
                        }
                    }

                    /// スーパーアーマー化
                    else if (eveCntr.GetEventId(i) == ActorEventId.SuperArm)
                    {
                        trgActor.SetEventSuperArm();
                    }

                    /// 動作キャンセル
                    else if (eveCntr.GetEventId(i) == ActorEventId.MvtCancel)
                    {
                        trgActor.SetEventMvtCancel();
                    }
                }
            }

            eveCntr.Clear();
        }
Example #2
0
/// public メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public bool Init()
        {
            actorStg = new ActorStgNormal();
            actorStg.Init();

            actorDestination = new ActorDestinationMark();
            actorDestination.Init();

            calCollLook = new ActorUnitCollLook();
            calCollLook.Init();

            EventCntr = new GameActorEventContainer();
            EventCntr.Init();

            towerPos.Xyz      = StaticDataList.getVectorZero();
            effectPos.Xyz     = StaticDataList.getVectorZero();
            mode              = 0;
            TouchCount        = 0;
            MonumentSetFlag   = false;
            makeEnemyMonument = 0;

            TowerAreaNorth = -114.4f;
            TowerAreaSouth = -120.4f;
            TowerAreaEast  = 109.0f;
            TowerAreaWest  = 103.0f;

            return(true);
        }
Example #3
0
        protected bool brokenFlg;                  /// 破壊可能かのフラグ



/// 継承メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public override bool Init()
        {
            unitCmnPlay = new ActorUnitCommon();

            EventCntr = new GameActorEventContainer();
            EventCntr.Init();

            Visible = false;
            return(DoInit());
        }
Example #4
0
        /// 継承メソッド
        ///---------------------------------------------------------------------------
        /// 初期化
        public override bool Init()
        {
            unitCmnPlay = new ActorUnitCommon();

            EventCntr   = new GameActorEventContainer();
            EventCntr.Init();

            Visible          = false;
            return( DoInit() );
        }
Example #5
0
        /// イベントの再生
        public void Play( GameActorProduct trgActor, GameActorEventContainer eveCntr )
        {
            if( eveCntr.Num > 0 ){

            GameCtrlManager        ctrlResMgr    = GameCtrlManager.GetInstance();

            for( int i=0; i<eveCntr.Num; i++ ){

                GameObjProduct trgObj = eveCntr.GetEntryObj( i );

                /// ダメージ
                if( eveCntr.GetEventId( i ) == ActorEventId.Damage ){
                    trgActor.SetEventDamage( trgObj, (Data.AttackTypeId)eveCntr.GetEntryAtb( i ) );
                }

                /// エフェクト再生
                else if( eveCntr.GetEventId( i ) == ActorEventId.Effect ){
                    if( trgObj != null ){
                        ctrlResMgr.CtrlEffect.EntryEffect( (Data.EffTypeId)eveCntr.GetEntryAtb( i ), trgObj );
                    }
                    else{

                        ctrlResMgr.CtrlEffect.EntryEffect( (Data.EffTypeId)eveCntr.GetEntryAtb( i ), eveCntr.GetTrgPos( i ) );
                    }
                }

                /// 相手の方へ向く
                else if( eveCntr.GetEventId( i ) == ActorEventId.LookTrg ){
                    trgActor.SetLookTrgPos( eveCntr.GetTrgPos( i ) );
                }

                /// 相手の方へ振り向く
                else if( eveCntr.GetEventId( i ) == ActorEventId.TurnTrg ){
                    if( trgObj != null ){
                        trgActor.SetEventTurnPos( new Vector3( trgObj.Mtx.M41, trgObj.Mtx.M42, trgObj.Mtx.M43 ), eveCntr.GetEntryAtb( i ) );
                    }
                }

                /// スーパーアーマー化
                else if( eveCntr.GetEventId( i ) == ActorEventId.SuperArm ){
                    trgActor.SetEventSuperArm();
                }

                /// 動作キャンセル
                else if( eveCntr.GetEventId( i ) == ActorEventId.MvtCancel ){
                    trgActor.SetEventMvtCancel();
                }
            }
            }

            eveCntr.Clear();
        }
Example #6
0
/// 継承メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public override bool Init()
        {
            unitCmnPlay = new ActorUnitCommon();
            unitCmnPlay.Init();

            moveCollMgr = new GameActorCollManager();
            moveCollMgr.Init();

            interfereCntr = new GameActorContainer();
            interfereCntr.Init();

            EventCntr = new GameActorEventContainer();
            EventCntr.Init();

            return(DoInit());
        }
Example #7
0
/// 継承メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public override bool Init()
        {
            moveCollMgr = new GameActorCollManager();
            moveCollMgr.Init();

            interfereCntr = new GameActorContainer();
            interfereCntr.Init();

            calCollMove = new ActorUnitCollMove();
            calCollMove.Init();

            EventCntr = new GameActorEventContainer();
            EventCntr.Init();

            return(DoInit());
        }
Example #8
0
        /// 破棄
        public void Term()
        {
            if (calCollLook != null)
            {
                calCollLook.Term();
            }
            if (EventCntr != null)
            {
                EventCntr.Clear();
                EventCntr.Term();
            }
            actorStg.Term();
            actorDestination.Term();

            EventCntr        = null;
            calCollLook      = null;
            actorStg         = null;
            actorDestination = null;
        }
Example #9
0
        /// 破棄
        public void Term()
        {
            if( calCollLook != null ){
            calCollLook.Term();
            }
            if( EventCntr != null ){
            EventCntr.Clear();
            EventCntr.Term();
            }
            actorStg.Term();
            actorDestination.Term();

            EventCntr		  = null;
            calCollLook       = null;
            actorStg          = null;
            actorDestination  = null;
        }
Example #10
0
        /// public メソッド
        ///---------------------------------------------------------------------------
        /// 初期化
        public bool Init()
        {
            actorStg = new ActorStgNormal();
            actorStg.Init();

            actorDestination = new ActorDestinationMark();
            actorDestination.Init();

            calCollLook    = new ActorUnitCollLook();
            calCollLook.Init();

            EventCntr = new GameActorEventContainer();
            EventCntr.Init();

            towerPos.Xyz = StaticDataList.getVectorZero();
            effectPos.Xyz = StaticDataList.getVectorZero();
            mode = 0;
            TouchCount = 0;
            MonumentSetFlag = false;
            makeEnemyMonument = 0;

            TowerAreaNorth = -114.4f;
            TowerAreaSouth = -120.4f;
            TowerAreaEast = 109.0f;
            TowerAreaWest = 103.0f;

            return true;
        }
Example #11
0
        /// 継承メソッド
        ///---------------------------------------------------------------------------
        /// 初期化
        public override bool Init()
        {
            moveCollMgr = new GameActorCollManager();
            moveCollMgr.Init();

            interfereCntr = new GameActorContainer();
            interfereCntr.Init();

            calCollMove    = new ActorUnitCollMove();
            calCollMove.Init();

            EventCntr = new GameActorEventContainer();
            EventCntr.Init();

            return( DoInit() );
        }
Example #12
0
        /// 継承メソッド
        ///---------------------------------------------------------------------------
        /// 初期化
        public override bool Init()
        {
            unitCmnPlay = new ActorUnitCommon();
            unitCmnPlay.Init();

            moveCollMgr = new GameActorCollManager();
            moveCollMgr.Init();

            interfereCntr = new GameActorContainer();
            interfereCntr.Init();

            EventCntr = new GameActorEventContainer();
            EventCntr.Init();

            return( DoInit() );
        }