示例#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();
        }
示例#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);
        }
示例#3
0
        protected bool brokenFlg;                  /// 破壊可能かのフラグ



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

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

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

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

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

            Visible          = false;
            return( DoInit() );
        }
示例#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();
        }
示例#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());
        }
示例#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());
        }
示例#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;
        }
示例#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;
        }
示例#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;
        }
示例#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() );
        }
示例#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() );
        }