public void SceneStart() { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //依存性注入 inputSoundProvider_.state_ = SaveDataSceneInputSoundState.Normal; //初期化 dataSelectInfoSprite_.sprite = ResourcesGraphicsLoader.GetInstance().GetGraphics(GraphicsPathSupervisor.GetInstance().GetPathGameStartInfo()); commandParts_.SelectReset(new Vector3(3.32f, 0.81f, -4)); //フェードイン eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 0) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //イベントの最後 eventMgr.EventFinishSet(); }
public override IProcessState Execute(BattleManager battleManager) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //SE battleManager.GetInputSoundProvider().SelectEnter(); battleManager.InactiveUiMonsterTradeSelectCommand(); sceneMgr.inputProvider_ = new InactiveInputProvider(); //フェードアウト eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //シーンの切り替え MonsterMenuManager.SetProcessStateProvider(new MonsterMenuSceneBattleProcessStateProvider()); eventMgr.SceneChangeEventSet(SceneState.MonsterMenu, SceneChangeMode.Slide); return(new CommandSelectProcess()); }
public IProcessState Update(BattleManager mgr) { AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); if (AllEventManager.GetInstance().EventUpdate()) { mgr.GetPlayerStatusInfoParts().ProcessIdleStart(); mgr.GetPlayerMonsterParts().ProcessIdleStart(); return(mgr.nowProcessState().NextProcess()); } if (allSceneMgr.inputProvider_.UpSelect()) { } else if (allSceneMgr.inputProvider_.DownSelect()) { } else if (allSceneMgr.inputProvider_.RightSelect()) { } else if (allSceneMgr.inputProvider_.LeftSelect()) { } else if (allSceneMgr.inputProvider_.SelectEnter() || allSceneMgr.inputProvider_.SelectMouseLeftTrigger()) { AllEventManager.GetInstance().EventTriggerNext(); } else if (allSceneMgr.inputProvider_.SelectNovelWindowActive()) { } return(this); }
public override void init(BugMenuManager bugMenuManager) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); //習得できる技の保存 for (int i = 0; i < playerTrainerData.GetHaveSkillSize(); ++i) { bugMenuManager.SkillTradeActiveSkillsAdd(playerTrainerData.GetSkillDatas(i)); } //技の名前の反映 for (int i = 0; i < bugMenuManager.GetCommandParts().GetCommandWindowTextsCount(); ++i) { if (i < bugMenuManager.GetSkillTradeActiveSkillsCount()) { bugMenuManager.GetCommandParts().CommandWindowChoiceTextChange(i, " " + bugMenuManager.GetSkillTradeActiveSkills(i).skillName_); } } //技の情報の反映 bugMenuManager.GetInfoFrameParts().SkillInfoReflect(bugMenuManager.GetSkillTradeActiveSkills(0)); //技が表以上にあったら if (bugMenuManager.GetSkillTradeActiveSkillsCount() > bugMenuManager.GetCommandParts().GetCommandWindowTextsCount()) { bugMenuManager.GetDownCursor().gameObject.SetActive(true); } }
private static void MapDescend(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); PlayerBattleData playerBattleData = PlayerBattleData.GetInstance(); EnemyBattleData enemyBattleData = EnemyBattleData.GetInstance(); playerTrainerData.nowMapFloor_ -= 1; mapManager.GetPlayerMoveMap().SetStartPos(new Vector3(9, 9.2f, -1)); //フェードアウト allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //シーンの切り替え allEventMgr.SceneChangeEventSet(SceneState.Map, SceneChangeMode.Change); }
private static void BattleVictory(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //技の取得 for (int i = 13; i < 26; ++i) { playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)i)); } //BGMの再生 AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Map()); AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().Play(); //選択肢の有り mapManager.monsterTradeSelectActive_ = true; //階層の移動の解放 mapManager.GetFloorObjects().GetEventMoveMaps(1).executeEventNum_ = 1; mapManager.GetFloorObjects().GetEventMoveMaps(2).executeEventNum_ = 1; //ドアの解放 mapManager.GetFloorObjects().GetEventMoveMaps(1).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; mapManager.GetFloorObjects().GetEventMoveMaps(2).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; mapManager.GetFloorObjects().GetEventMoveMaps(3).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; mapManager.GetFloorObjects().GetEventMoveMaps(4).GetEventSpriteRenderer().GetSpriteRenderer().sprite = null; //手持ちモンスターの回復 for (int i = 0; i < playerTrainerData.GetHaveMonsterSize(); ++i) { playerTrainerData.GetMonsterDatas(i).battleActive_ = true; playerTrainerData.GetMonsterDatas(i).nowHitPoint_ = playerTrainerData.GetMonsterDatas(i).RealHitPoint(); } //クリア階層の増加 playerTrainerData.clearMapFloor_ += 1; //エネミーの設定 enemyTrainerData.SetTrainerData(ResourcesEnemyTrainerDatasLoader.GetInstance().GetEnemyTrainerDatas(2)); ////技の取得 //for (int i = 29; i < 43; ++i) { // playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)i)); //} //playerTrainerData.SkillAdd(new SkillData((SkillDataNumber)47)); //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("Girl/BattleVictory1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //イベントの最後 allEventMgr.EventFinishSet(); }
public override void SelectEnter(MapManager mapManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //選択肢の初期化 mapManager.GetCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); mapManager.GetPlayerMoveMap().is_move = false; mapManager.GetCommandParts().gameObject.SetActive(false); //操作の変更 sceneMgr.inputProvider_ = new KeyBoardSelectInactiveTriggerInputProvider(); mapManager.GetProcessProvider().state_ = MapSceneProcess.EventExecute; mapManager.eventBackProcess_ = MapSceneProcess.PlayerMove; //データのセーブ SaveDataTrasfer.GetInstance().DataSave(); //SE eventMgr.SEAudioPlayOneShotEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathSelect2())); //ノベル処理 EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), "レポートに しっかりかきのこした!"); //イベントの最後 eventMgr.EventFinishSet(); }
public void ElementReflectEventSet(ElementTypeState elementTypeState) { AllEventManager eventManager = AllEventManager.GetInstance(); //タイプの反映 eventManager.EventSpriteRendererSet(elementInfoEventSprite_, null, elementTypeState.GetColor()); eventManager.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventManager.AllUpdateEventExecute(); //もしタイプがNoneだったら if (elementTypeState.state_ == ElementType.None) { //透明にする eventManager.EventTextSet(elementInfoEventText_, "", new Color32(0, 0, 0, 0)); eventManager.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.ChangeColor); eventManager.AllUpdateEventExecute(); } else { //表示する eventManager.EventTextSet(elementInfoEventText_, "", new Color32(241, 241, 241, 255)); eventManager.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.ChangeColor); eventManager.AllUpdateEventExecute(); } //名前の反映 eventManager.EventTextSet(elementInfoEventText_, elementTypeState.GetName()); eventManager.EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); eventManager.AllUpdateEventExecute(); }
private static void BattleStart(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //エネミーの設定 enemyTrainerData.SetTrainerData(ResourcesEnemyTrainerDatasLoader.GetInstance().GetEnemyTrainerDatas(5)); //BGMの停止 allEventMgr.BGMAudioVolumeChangeEventSet(0); //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("FinalDocter/BattleStart1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //BGMの再生 allEventMgr.BGMAudioClipChangeEventSet(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_DeadIntro())); allEventMgr.BGMAudioPlayEventSet(); allEventMgr.BGMAudioVolumeChangeEventSet(0.3f); //戦闘の処理 EventMoveMap.BattleEvent(ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Dead())); }
public override void SelectEnter(MapManager mapManager) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //操作の変更 sceneMgr.inputProvider_ = new InactiveInputProvider(); //選択肢の非表示 mapManager.GetCommandParts().gameObject.SetActive(false); //選択肢の初期化 mapManager.GetCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); //フェードアウト eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //シーンの切り替え MonsterMenuManager.SetProcessStateProvider(new MonsterMenuSceneNormalProcessStateProvider()); eventMgr.SceneChangeEventSet(SceneState.MonsterMenu, SceneChangeMode.Slide); }
public void MonsterStatusInfoSetEventSet(IMonsterData monsterData) { //名前をTextに反映 string monsterViewName = t13.Utility.StringFullSpaceBackTamp(monsterData.uniqueName_, 6); AllEventManager.GetInstance().EventTextSet(baseParts_.GetInfoNameEventText(), monsterViewName); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(); //HPをTextに反映 //HPゲージの調整 float hpGaugeFillAmount = t13.Utility.ValueForPercentage(monsterData.RealHitPoint(), monsterData.nowHitPoint_, 1); AllEventManager.GetInstance().HpGaugePartsSet(frameParts_.GetHpGaugeParts(), hpGaugeFillAmount, monsterData); AllEventManager.GetInstance().HpGaugePartsUpdateExecuteSet(HpGaugePartsEventManagerExecute.GaugeUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(); //状態異常の反映 monsterData.battleData_.AbnormalSetStatusInfoPartsEventSet(this); //タイプの反映 firstElementInfoParts_.ElementReflectEventSet(monsterData.tribesData_.firstElement_); secondElementInfoParts_.ElementReflectEventSet(monsterData.tribesData_.secondElement_); }
public override void SelectEnter(MapManager mapManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); //操作の変更 sceneMgr.inputProvider_ = new InactiveInputProvider(); //プレイヤーデータの初期化 PlayerTrainerData.ReleaseInstance(); //選択肢の初期化 mapManager.GetCommandParts().gameObject.SetActive(false); mapManager.GetCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); //フェードアウト eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(sceneMgr.GetEventWaitTime()); //イベントの最後 //シーンの切り替え eventMgr.SceneChangeEventSet(SceneState.Title, SceneChangeMode.Change); }
public override MonsterMenuSceneProcess Update(MonsterMenuManager monsterMenuManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); if (eventMgr.EventUpdate()) { return(MonsterMenuSceneProcess.SkillSelect); } if (sceneMgr.inputProvider_.UpSelect()) { } else if (sceneMgr.inputProvider_.DownSelect()) { } else if (sceneMgr.inputProvider_.RightSelect()) { } else if (sceneMgr.inputProvider_.LeftSelect()) { } else if (sceneMgr.inputProvider_.SelectEnter() || sceneMgr.inputProvider_.SelectMouseLeftTrigger()) { eventMgr.EventTriggerNext(); } else if (sceneMgr.inputProvider_.SelectBack()) { } return(monsterMenuManager.GetNowProcessState().state_); }
private static void NoneEvent(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); //イベントの最後 allEventMgr.EventFinishSet(); }
public override bool EffectValueEventSet(BattleManager mgr, BTrainerBattleData attackTrainerBattleData, BTrainerBattleData defenseTrainerBattleData, EffectParts attackEffectParts, EffectParts defenseEffectParts, MonsterParts defenseMonsterParts, StatusInfoParts attackStatusInfoParts, StatusInfoParts defenseStatusInfoParts, DreamPointInfoParts attackDreamPointInfoParts, DreamPointInfoParts defenseDreamPointInfoParts, IMonsterData attackMonsterData, ISkillData attackSkillData, IMonsterData defenseMonsterData) { //技のアニメーション attackSkillData.EffectAnimetionEventSet(defenseEffectParts); AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); return(true); }
public void EffectAnimetionEventSet(EffectParts targetEffectParts) { //SE AllEventManager.GetInstance().SEAudioPlayOneShotEventSet(effectSound_); //アニメーション AllEventManager.GetInstance().EventSpriteRendererSet(targetEffectParts.GetEventSpriteRenderer(), effectAnimeSprites_); AllEventManager.GetInstance().EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.Anime); AllEventManager.GetInstance().AllUpdateEventExecute(0.35f); }
public override IProcessState Execute(BattleManager battleManager) { //文字列の設定 AllEventManager.GetInstance().EventTextSet(battleManager.GetNovelWindowParts().GetNovelWindowEventText(), "いまは にげられない!"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(battleManager.GetEventContextUpdateTime()); //イベントの最後 AllEventManager.GetInstance().EventFinishSet(); return(battleManager.nowProcessState()); }
public override void Execute(MonsterMenuManager monsterMenuManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); //先頭がダウンしていたら if (!PlayerBattleData.GetInstance().GetMonsterDatas(0).battleActive_) { PlayerBattleData.GetInstance().changeMonsterNumber_ = monsterMenuManager.selectMonsterNumber_; PlayerBattleData.GetInstance().changeMonsterSkillNumber_ = monsterMenuManager.GetSkillCommandParts().SelectNumber(); PlayerBattleData.GetInstance().changeMonsterActive_ = true; //操作の変更 sceneMgr.inputProvider_ = new InactiveInputProvider(); //技の選択肢の初期化 monsterMenuManager.GetSkillCommandParts().SelectReset(new Vector3(-5.29f, 0.82f, 2)); //フェードアウト eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //シーンの切り替え eventMgr.SceneChangeEventSet(SceneState.Battle, SceneChangeMode.Continue); } else { if (PlayerBattleData.GetInstance().GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).battleActive_ && PlayerBattleData.GetInstance().GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).tribesData_.monsterNumber_ != (int)MonsterTribesDataNumber.None) { monsterMenuManager.GetMonsterActionCommandParts().gameObject.SetActive(false); monsterMenuManager.GetNowProcessState().state_ = MonsterMenuSceneProcess.SkillSelect; //技の情報の反映 monsterMenuManager.GetSkillInfoFrameParts().SkillInfoReflect(PlayerBattleData.GetInstance().GetMonsterDatas(monsterMenuManager.selectMonsterNumber_).GetSkillDatas(0)); //技の選択肢の初期化 monsterMenuManager.GetSkillCommandParts().commandWindowChoicesColliderActive(); monsterMenuManager.GetSkillCommandParts().GetCursorParts().gameObject.SetActive(true); //モンスターの交換中 monsterMenuManager.monsterTradeSelectSkill_ = true; } } }
public override bool EffectValueEventSet(BattleManager mgr, BTrainerBattleData attackTrainerBattleData, BTrainerBattleData defenseTrainerBattleData, EffectParts attackEffectParts, EffectParts defenseEffectParts, MonsterParts defenseMonsterParts, StatusInfoParts attackStatusInfoParts, StatusInfoParts defenseStatusInfoParts, DreamPointInfoParts attackDreamPointInfoParts, DreamPointInfoParts defenseDreamPointInfoParts, IMonsterData attackMonsterData, ISkillData attackSkillData, IMonsterData defenseMonsterData) { //攻撃の成功判定 //技の命中率×命中補正値M×ランク補正 bool skillSuccess = AllSceneManager.GetInstance().GetRandom().Next(0, 100) < (int)(attackSkillData.successRateValue_ * (4096 / 4096)); //技が失敗した時の説明 if (!skillSuccess) { AllEventManager.GetInstance().EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), "しかし " + attackTrainerBattleData.GetUniqueTrainerName() + attackMonsterData.uniqueName_ + "は\nうまく きめられなかった!"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(mgr.GetEventContextUpdateTime()); AllEventManager.GetInstance().EventWaitSet(1.0f); return(false); } //ヒットポイントの変動 attackMonsterData.nowHitPoint_ += (int)attackSkillData.effectValue_; if (attackMonsterData.nowHitPoint_ > attackMonsterData.RealHitPoint()) { attackMonsterData.nowHitPoint_ = attackMonsterData.RealHitPoint(); } //技のアニメーション attackSkillData.EffectAnimetionEventSet(attackEffectParts); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); //ヒットポイントのゲージの変動イベントの設定 float hpGaugeFillAmount = t13.Utility.ValueForPercentage(attackMonsterData.RealHitPoint(), attackMonsterData.nowHitPoint_, 1); AllEventManager.GetInstance().HpGaugePartsSet(attackStatusInfoParts.GetFrameParts().GetHpGaugeParts(), hpGaugeFillAmount, attackMonsterData); AllEventManager.GetInstance().HpGaugePartsUpdateExecuteSet(HpGaugePartsEventManagerExecute.GaugeUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(0.5f); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); //文字列の処理 AllEventManager.GetInstance().EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), attackTrainerBattleData.GetUniqueTrainerName() + attackMonsterData.uniqueName_ + "は\nたいりょくを かいふくした!"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(mgr.GetEventContextUpdateTime()); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); return(true); }
public override bool EffectValueEventSet(BattleManager mgr, BTrainerBattleData attackTrainerBattleData, BTrainerBattleData defenseTrainerBattleData, EffectParts attackEffectParts, EffectParts defenseEffectParts, MonsterParts defenseMonsterParts, StatusInfoParts attackStatusInfoParts, StatusInfoParts defenseStatusInfoParts, DreamPointInfoParts attackDreamPointInfoParts, DreamPointInfoParts defenseDreamPointInfoParts, IMonsterData attackMonsterData, ISkillData attackSkillData, IMonsterData defenseMonsterData) { //攻撃の成功判定 //技の命中率×命中補正値M×ランク補正 bool skillSuccess = AllSceneManager.GetInstance().GetRandom().Next(0, 100) < (int)(attackSkillData.successRateValue_ * (4096 / 4096)); //技が失敗した時の説明 if (!skillSuccess) { AllEventManager.GetInstance().EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), "しかし " + attackTrainerBattleData.GetUniqueTrainerName() + attackMonsterData.uniqueName_ + "は\nうまく きめられなかった!"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(mgr.GetEventContextUpdateTime()); AllEventManager.GetInstance().EventWaitSet(1.0f); return(false); } //ドリームポイントの変動 attackTrainerBattleData.DreamPointAddValue((int)attackSkillData.effectValue_); defenseTrainerBattleData.DreamPointAddValue(-(int)attackSkillData.effectValue_); //技のアニメーション attackSkillData.EffectAnimetionEventSet(attackEffectParts); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); //DPの演出のイベント defenseDreamPointInfoParts.DPEffectEventSet(defenseTrainerBattleData.GetDreamPoint()); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); //DPの演出のイベント attackDreamPointInfoParts.DPEffectEventSet(attackTrainerBattleData.GetDreamPoint()); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); //文字列の処理 AllEventManager.GetInstance().EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), attackTrainerBattleData.GetUniqueTrainerName() + attackMonsterData.uniqueName_ + "は\nドリームポイントを うばった!"); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(mgr.GetEventContextUpdateTime()); //ウェイト AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); return(true); }
private static void BattleLose(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //BGMの再生 AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Map()); AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().Play(); //手持ちモンスターの回復 for (int i = 0; i < playerTrainerData.GetHaveMonsterSize(); ++i) { playerTrainerData.GetMonsterDatas(i).battleActive_ = true; playerTrainerData.GetMonsterDatas(i).nowHitPoint_ = playerTrainerData.GetMonsterDatas(i).RealHitPoint(); } //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("FinalDocter/BattleLose1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //プレイヤーデータの初期化 PlayerTrainerData.ReleaseInstance(); //選択肢の初期化 mapManager.GetCommandParts().gameObject.SetActive(false); mapManager.GetCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); //フェードアウト allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(3.5f); //イベントの最後 //シーンの切り替え //allEventMgr.SceneChangeEventSet(SceneState.Title, SceneChangeMode.Change); //ゲームの終了 t13.UnityUtil.GameQuit(); }
private static void BattleLose(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //BGMの再生 allSceneMgr.GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Map()); allSceneMgr.GetPublicAudioParts().GetBGMAudioSource().Play(); //手持ちモンスターの回復 for (int i = 0; i < playerTrainerData.GetHaveMonsterSize(); ++i) { playerTrainerData.GetMonsterDatas(i).battleActive_ = true; playerTrainerData.GetMonsterDatas(i).nowHitPoint_ = playerTrainerData.GetMonsterDatas(i).RealHitPoint(); } //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("Man/BattleLose1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //フェードアウト allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 1) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //ウェイト allEventMgr.EventWaitSet(allSceneMgr.GetEventWaitTime() * 2); //フェードイン allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 0) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(0.4f); //イベントの最後 allEventMgr.EventFinishSet(); }
private void ParameterRankEventSet(BattleManager mgr, BTrainerBattleData trainerBattleData, IMonsterData selfMonsterData, ISkillData skillData, IMonsterData otherMonsterData) { if (skillData.addSelfParameterRanks_[0].state_ != AddParameterRank.None) { if (skillData.addSelfParameterRanks_.Count > 0) { //アニメーション AllEventManager.GetInstance().EventWaitSet(1.0f); } //自分への能力変化の処理 for (int i = 0; i < skillData.addSelfParameterRanks_.Count; ++i) { //能力変化の更新 string parameterRankContext = skillData.addSelfParameterRanks_[i].AddParameterExecute(selfMonsterData); //文字列のイベント AllEventManager.GetInstance().EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), trainerBattleData.GetUniqueTrainerName() + parameterRankContext); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(mgr.GetEventContextUpdateTime()); AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); } } if (skillData.addOtherParameterRanks_[0].state_ != AddParameterRank.None) { if (skillData.addOtherParameterRanks_.Count > 0) { //アニメーション AllEventManager.GetInstance().EventWaitSet(1.0f); } //相手への能力変化の処理 for (int i = 0; i < skillData.addOtherParameterRanks_.Count; ++i) { //能力変化の更新 string parameterRankContext = skillData.addOtherParameterRanks_[i].AddParameterExecute(otherMonsterData); //文字列のイベント AllEventManager.GetInstance().EventTextSet(mgr.GetNovelWindowParts().GetNovelWindowEventText(), parameterRankContext); AllEventManager.GetInstance().EventTextsUpdateExecuteSet(EventTextEventManagerExecute.CharaUpdate); AllEventManager.GetInstance().AllUpdateEventExecute(mgr.GetEventContextUpdateTime()); AllEventManager.GetInstance().EventWaitSet(mgr.GetEventWaitTime()); } } }
private static void TradeSuccess(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("Man/TradeSuccess1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } }
public override void SelectEnter(MapManager mapManager) { AllSceneManager sceneMgr = AllSceneManager.GetInstance(); AllEventManager eventMgr = AllEventManager.GetInstance(); //選択肢の初期化 mapManager.GetCommandParts().SelectReset(new Vector3(-0.6f, 0.85f, -4)); mapManager.GetPlayerMoveMap().is_move = true; mapManager.GetCommandParts().gameObject.SetActive(false); //操作の変更 sceneMgr.inputProvider_ = new KeyBoardNormalInputProvider(); mapManager.GetProcessProvider().state_ = MapSceneProcess.PlayerMove; }
private static void BattleVictory(EventMoveMap eventMoveMap, MapManager mapManager) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); PlayerTrainerData playerTrainerData = PlayerTrainerData.GetInstance(); EnemyTrainerData enemyTrainerData = EnemyTrainerData.GetInstance(); mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; mapManager.GetNovelWindowParts().GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; //BGMの再生 AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().clip = ResourcesSoundsLoader.GetInstance().GetSounds(SoundsPathSupervisor.GetInstance().GetPathDreamers_Map()); AllSceneManager.GetInstance().GetPublicAudioParts().GetBGMAudioSource().Play(); //手持ちモンスターの回復 for (int i = 0; i < playerTrainerData.GetHaveMonsterSize(); ++i) { playerTrainerData.GetMonsterDatas(i).battleActive_ = true; playerTrainerData.GetMonsterDatas(i).nowHitPoint_ = playerTrainerData.GetMonsterDatas(i).RealHitPoint(); } //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("FinalDocter/BattleVictory1"); EventMoveMap.NovelEvent(mapManager.GetNovelWindowParts(), context, mapManager.GetCharacterEventSprite()); } //フェードアウト allEventMgr.EventSpriteRendererSet( allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, allSceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 255) ); allEventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); allEventMgr.AllUpdateEventExecute(2.0f); //イベントの最後 //シーンの切り替え if (playerTrainerData.clearTimes_ > 0) { allEventMgr.SceneChangeEventSet(SceneState.GameContinue, SceneChangeMode.Change); } else { allEventMgr.SceneChangeEventSet(SceneState.Ending, SceneChangeMode.Change); } }
static public void ObjectMovePosXEvent(ObjectMoveMap objectMoveMap, int addValue, float timeRgulation) { AllEventManager allEventMgr = AllEventManager.GetInstance(); AllSceneManager allSceneMgr = AllSceneManager.GetInstance(); allEventMgr.UpdateGameObjectSet(objectMoveMap.GetUpdateGameObject(), new Vector3(objectMoveMap.gameObject.transform.position.x + addValue, objectMoveMap.gameObject.transform.position.y, objectMoveMap.gameObject.transform.position.z)); allEventMgr.UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.PosMove); allEventMgr.AllUpdateEventExecute(timeRgulation); if (addValue < 0) { objectMoveMap.MapMoveLeft(System.Math.Abs(addValue)); } else { objectMoveMap.MapMoveRight(System.Math.Abs(addValue)); } }
public void DownRollMagazineParts() { AllEventManager.GetInstance().UpdateGameObjectSet(eventGameObject_, new Vector3(transform.rotation.eulerAngles.x, transform.rotation.eulerAngles.y, transform.rotation.eulerAngles.z - (360.0f / monsterSDsParts_.Count))); for (int i = 0; i < monsterSDsParts_.Count; ++i) { AllEventManager.GetInstance().UpdateGameObjectSet(monsterSDsParts_[i].GetEventGameObject(), new Vector3(monsterSDsParts_[i].transform.localRotation.eulerAngles.x, monsterSDsParts_[i].transform.localRotation.eulerAngles.y, monsterSDsParts_[i].transform.localRotation.eulerAngles.z + (360.0f / monsterSDsParts_.Count))); } for (int i = 0; i < battleMonsterFrame_.Count; ++i) { AllEventManager.GetInstance().UpdateGameObjectSet(battleMonsterFrame_[i], new Vector3(battleMonsterFrame_[i].transform.localRotation.eulerAngles.x, battleMonsterFrame_[i].transform.localRotation.eulerAngles.y, battleMonsterFrame_[i].transform.localRotation.eulerAngles.z + (360.0f / monsterSDsParts_.Count))); } AllEventManager.GetInstance().UpdateGameObjectUpdateExecuteSet(UpdateGameObjectEventManagerExecute.RotMove); AllEventManager.GetInstance().AllUpdateEventExecute(UPDATE_TIME_REGULATION); }
public IProcessState Update(BattleManager mgr) { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); //交換されていたら if (PlayerBattleData.GetInstance().changeMonsterActive_) { //フェードイン eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 0) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //交換イベント PlayerBattleData.GetInstance().MonsterChangeEventSet(mgr); //イベントの最後 eventMgr.EventFinishSet(); PlayerBattleData.GetInstance().changeMonsterActive_ = false; } if (AllEventManager.GetInstance().EventUpdate() && PlayerBattleData.GetInstance().GetMonsterDatas(0).battleActive_) { //ウィンドウの非表示 mgr.GetNovelWindowParts().gameObject.SetActive(false); mgr.GetPlayerStatusInfoParts().ProcessIdleStart(); mgr.GetPlayerMonsterParts().ProcessIdleStart(); mgr.ActiveUiStartCommand(); sceneMgr.inputProvider_ = new KeyBoardNormalTriggerInputProvider(); //攻撃技の反映 mgr.GetAttackCommandParts().MonsterDataReflect(PlayerBattleData.GetInstance().GetMonsterDatas(0), EnemyBattleData.GetInstance().GetMonsterDatas(0)); return(mgr.nowProcessState().NextProcess()); } return(this); }
public void SceneStart() { AllEventManager eventMgr = AllEventManager.GetInstance(); AllSceneManager sceneMgr = AllSceneManager.GetInstance(); novelWindowParts_.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().blinkTimeRegulation_ = 0.5f; novelWindowParts_.GetNovelBlinkIconParts().GetNovelBlinkIconEventSprite().GetBlinkState().state_ = UpdateSpriteRendererProcessBlink.In; PlayerTrainerData.GetInstance().prepareContinue_ = true; //フェードイン eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.r, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.g, sceneMgr.GetPublicFrontScreen().GetEventScreenSprite().GetSpriteRenderer().color.b, 0) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(); //ウェイト eventMgr.EventWaitSet(2.0f); //ノベル処理 { string context = ResourcesTextsLoader.GetInstance().GetTexts("GameContinue/GameContinue1"); EventMoveMap.NovelEvent(novelWindowParts_, context); } //ウェイト eventMgr.EventWaitSet(sceneMgr.GetEventWaitTime()); //フェードアウト eventMgr.EventSpriteRendererSet( sceneMgr.GetPublicFrontScreen().GetEventScreenSprite() , null , new Color(0, 0, 0, 1) ); eventMgr.EventSpriteRenderersUpdateExecuteSet(EventSpriteRendererEventManagerExecute.ChangeColor); eventMgr.AllUpdateEventExecute(0.4f); //イベントの最後 //シーンの切り替え MonsterMenuManager.SetProcessStateProvider(new MonsterMenuSceneNormalProcessStateProvider()); eventMgr.SceneChangeEventSet(SceneState.MonsterMenu, SceneChangeMode.Slide); }