/// 破棄 public void Term() { GameCtrlDrawManager.GetInstance().Term(); ctrlPl.Term(); ctrlHobit.Term(); ctrlTo.Term(); ctrlWall.Term(); ctrlCam.Term(); ctrlStg.Term(); ctrlEffect.Term(); ctrlEvent.Term(); ctrlDesMark.Term(); ctrlHouse.Term(); ctrlMo.Term(); ctrlPl = null; ctrlHobit = null; ctrlTo = null; ctrlWall = null; ctrlCam = null; ctrlStg = null; ctrlEffect = null; ctrlEvent = null; ctrlDesMark = null; ctrlHouse = null; ctrlMo = null; graphDev = null; }
private void AddHouseFromMonument() { int disNS = (int)(CtrlStg.TowerAreaNorth - CtrlStg.TowerAreaSouth); int disEW = (int)(CtrlStg.TowerAreaEast - CtrlStg.TowerAreaWest); CtrlHouse.EntryAddHouse((int)(StaticDataList.getRandom((int)Data.Tex2dResId.HouseStart + 2, (int)Data.Tex2dResId.HouseMax)), new Vector3(StaticDataList.getRandom((int)CtrlStg.TowerAreaSouth - disNS / 2, (int)CtrlStg.TowerAreaNorth + disNS / 2), 50.0f, StaticDataList.getRandom((int)CtrlStg.TowerAreaWest - disEW / 2, (int)CtrlStg.TowerAreaEast + disEW / 2)) ); }
private bool makeHouseAndEnTimer() { if (countTime % (int)Data.SetupValue.NewMonumentAppearTime == 0) { if (CtrlHouse.GetEntryNum() < ctrlHobit.GetEntryNum() * (int)Data.SetupValue.BonusNewMoHouseLimit / 10.0f * ctrlMo.GetEntryNum()) { AddHouseFromMo = true; } if (ctrlHobit.GetEntryNum() < CtrlTo.GetEntryNum() * (int)Data.SetupValue.NewEnemyMultipleTower / 10.0f * (int)Data.SetupValue.BonusNewMoEnemyLimit / 10.0f * ctrlMo.GetEntryNum()) { AddEnemyFromMo = true; } /* * countTime = (int)Data.SetupValue.NewMonumentAppearTime + * StaticDataList.getRandom(-(int)(Data.SetupValue.NewMonumentAppearTime)/3,(int)(Data.SetupValue.NewMonumentAppearTime)/3); */ } return(true); }
/// public メソッド ///--------------------------------------------------------------------------- /// 初期化 public bool Init() { ctrlPl = new CtrlPlayer(); ctrlPl.Init(); ctrlHobit = new CtrlHobit(); ctrlHobit.Init(); ctrlTo = new CtrlTower(); ctrlTo.Init(); ctrlWall = new CtrlWall(); ctrlWall.Init(); ctrlCam = new CtrlCamera(); ctrlCam.Init(); ctrlStg = new CtrlStage(); ctrlStg.Init(); ctrlEffect = new CtrlEffect(); ctrlEffect.Init(); ctrlEvent = new CtrlEvent(); ctrlEvent.Init(); ctrlDesMark = new CtrlDestinationMark(); ctrlDesMark.Init(); ctrlHouse = new CtrlHouse(); ctrlHouse.Init(); ctrlMo = new CtrlMonument(); ctrlMo.Init(); GameCtrlDrawManager.GetInstance().Init(); EnemyNumber = 0; HouseNumber = 0; TowerNumber = 0; WallNumber = 0; MonumentNumber = 0; EnemyDrawFlag = false; TowerDrawFlag = false; WallDrawFlag = false; HouseDrawFlag = false; EatingFlag = false; MonumentDrawFlag = false; EatCharNumber = 0; AddEnemyFromMo = false; AddHouseFromMo = false; changePlAni = false; changePlMode = false; eatingBoss = false; AddEnemyFromNecro = false; battleStartFlag = false; AddEffectFromEnemy = false; AddTower = false; ZonbiNumber = 30; EnemyMoPos = new Vector3(-70.0f, 45.0f, 65.0f); countTime = 0; SortNumber = 0; nowFps = 0.0f; EatingNow = false; EatingCount = 0; EatingStart = 20; return true; }
/// public メソッド ///--------------------------------------------------------------------------- /// 初期化 public bool Init() { ctrlPl = new CtrlPlayer(); ctrlPl.Init(); ctrlHobit = new CtrlHobit(); ctrlHobit.Init(); ctrlTo = new CtrlTower(); ctrlTo.Init(); ctrlWall = new CtrlWall(); ctrlWall.Init(); ctrlCam = new CtrlCamera(); ctrlCam.Init(); ctrlStg = new CtrlStage(); ctrlStg.Init(); ctrlEffect = new CtrlEffect(); ctrlEffect.Init(); ctrlEvent = new CtrlEvent(); ctrlEvent.Init(); ctrlDesMark = new CtrlDestinationMark(); ctrlDesMark.Init(); ctrlHouse = new CtrlHouse(); ctrlHouse.Init(); ctrlMo = new CtrlMonument(); ctrlMo.Init(); GameCtrlDrawManager.GetInstance().Init(); EnemyNumber = 0; HouseNumber = 0; TowerNumber = 0; WallNumber = 0; MonumentNumber = 0; EnemyDrawFlag = false; TowerDrawFlag = false; WallDrawFlag = false; HouseDrawFlag = false; EatingFlag = false; MonumentDrawFlag = false; EatCharNumber = 0; AddEnemyFromMo = false; AddHouseFromMo = false; changePlAni = false; changePlMode = false; eatingBoss = false; AddEnemyFromNecro = false; battleStartFlag = false; AddEffectFromEnemy = false; AddTower = false; ZonbiNumber = 30; EnemyMoPos = new Vector3(-70.0f, 45.0f, 65.0f); countTime = 0; SortNumber = 0; nowFps = 0.0f; EatingNow = false; EatingCount = 0; EatingStart = 20; return(true); }