public int GetKillDragonNum() { int num = 0; int dragonId = Singleton <BattleLogic> .instance.DragonId; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (dragonId == record.cfgId) { num++; } else { DeadRecord record2 = this.m_deadRecordList[i]; if (record2.actorType == ActorTypeDef.Actor_Type_Monster) { DeadRecord record3 = this.m_deadRecordList[i]; if (record3.actorSubType == 2) { DeadRecord record4 = this.m_deadRecordList[i]; ResMonsterCfgInfo dataCfgInfoByCurLevelDiff = MonsterDataHelper.GetDataCfgInfoByCurLevelDiff(record4.cfgId); if ((dataCfgInfoByCurLevelDiff != null) && (dataCfgInfoByCurLevelDiff.bSoldierType == 9)) { num++; } } } } } return(num); }
public int GetKillDragonNum(COM_PLAYERCAMP killerCamp) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (killerCamp == record.killerCamp) { DeadRecord record2 = this.m_deadRecordList[i]; if (record2.actorType == ActorTypeDef.Actor_Type_Monster) { DeadRecord record3 = this.m_deadRecordList[i]; if (record3.actorSubType == 2) { DeadRecord record4 = this.m_deadRecordList[i]; if (record4.actorSubSoliderType != 9) { DeadRecord record5 = this.m_deadRecordList[i]; if (record5.actorSubSoliderType != 7) { continue; } } num++; } } } } return(num); }
public int GetTotalNum(COM_PLAYERCAMP camp, ActorTypeDef actorType, byte actorSubType, byte actorSubSoliderType) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (record.camp == camp) { DeadRecord record2 = this.m_deadRecordList[i]; if (record2.actorType == actorType) { DeadRecord record3 = this.m_deadRecordList[i]; if (record3.actorSubType == actorSubType) { DeadRecord record4 = this.m_deadRecordList[i]; if (record4.actorSubSoliderType == actorSubSoliderType) { num++; } } } } } return(num); }
public int GetDeadNum(COM_PLAYERCAMP camp, ActorTypeDef actorType, int subType, int cfgId) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (camp == record.camp) { DeadRecord record2 = this.m_deadRecordList[i]; if (actorType == record2.actorType) { DeadRecord record3 = this.m_deadRecordList[i]; if (subType == record3.actorSubType) { DeadRecord record4 = this.m_deadRecordList[i]; if (cfgId == record4.cfgId) { num++; } } } } } return(num); }
public int GetDragonDeadTime(int index) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (record.actorType == ActorTypeDef.Actor_Type_Monster) { DeadRecord record2 = this.m_deadRecordList[i]; if (record2.actorSubType == 2) { DeadRecord record3 = this.m_deadRecordList[i]; if (record3.actorSubSoliderType != 9) { DeadRecord record4 = this.m_deadRecordList[i]; if (record4.actorSubSoliderType != 7) { continue; } } if (num == index) { DeadRecord record5 = this.m_deadRecordList[i]; return(record5.deadTime); } num++; } } } return(0); }
public DeadRecord GetRecordAtIndex(COM_PLAYERCAMP camp, ActorTypeDef actorType, byte actorSubType, byte actorSubSoliderType, int index) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (record.camp == camp) { DeadRecord record2 = this.m_deadRecordList[i]; if (record2.actorType == actorType) { DeadRecord record3 = this.m_deadRecordList[i]; if (record3.actorSubType == actorSubType) { DeadRecord record4 = this.m_deadRecordList[i]; if (record4.actorSubSoliderType == actorSubSoliderType) { if (num == index) { return(this.m_deadRecordList[i]); } num++; } } } } } return(new DeadRecord()); }
private void OnDeadRecord(ref GameDeadEventParam prm) { if (!prm.bImmediateRevive) { PoolObjHandle <ActorRoot> src = prm.src; PoolObjHandle <ActorRoot> orignalAtker = prm.orignalAtker; if ((src != 0) && (orignalAtker != 0)) { if (src.handle.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero) { this.m_deadRecordList.Add(new DeadRecord(src.handle.TheActorMeta.ActorCamp, src.handle.TheActorMeta.ActorType, src.handle.TheActorMeta.ConfigId, (int)Singleton <FrameSynchr> .instance.LogicFrameTick, orignalAtker.handle.TheActorMeta.ActorCamp, orignalAtker.handle.TheActorMeta.PlayerId)); if (this.m_uiFBTime == 0) { this.m_uiFBTime = (uint)Singleton <FrameSynchr> .instance.LogicFrameTick; } } else if (src.handle.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Monster) { DeadRecord item = new DeadRecord(src.handle.TheActorMeta.ActorCamp, src.handle.TheActorMeta.ActorType, src.handle.TheActorMeta.ConfigId, (int)Singleton <FrameSynchr> .instance.LogicFrameTick, orignalAtker.handle.TheActorMeta.ActorCamp, orignalAtker.handle.TheActorMeta.PlayerId); if (src.handle.ActorControl != null) { item.actorSubType = src.handle.ActorControl.GetActorSubType(); item.actorSubSoliderType = src.handle.ActorControl.GetActorSubSoliderType(); if (item.actorSubType == 2) { if (item.actorSubType == 7) { item.fightTime = ((int)Singleton <FrameSynchr> .instance.LogicFrameTick) - this.m_baojunEnterCombatTime; } else if (item.actorSubType == 8) { item.fightTime = ((int)Singleton <FrameSynchr> .instance.LogicFrameTick) - this.m_baronEnterCombatTime; } else if (item.actorSubType == 9) { item.fightTime = ((int)Singleton <FrameSynchr> .instance.LogicFrameTick) - this.m_bigDragonEnterCombatTime; } } } this.m_deadRecordList.Add(item); this.m_deadMonsterNum++; } else if ((src.handle.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Organ) && (((src.handle.TheStaticData.TheOrganOnlyInfo.OrganType == 1) || (src.handle.TheStaticData.TheOrganOnlyInfo.OrganType == 4)) || (src.handle.TheStaticData.TheOrganOnlyInfo.OrganType == 2))) { DeadRecord record2 = new DeadRecord(src.handle.TheActorMeta.ActorCamp, src.handle.TheActorMeta.ActorType, src.handle.TheActorMeta.ConfigId, (int)Singleton <FrameSynchr> .instance.LogicFrameTick, orignalAtker.handle.TheActorMeta.ActorCamp, orignalAtker.handle.TheActorMeta.PlayerId); if (src.handle.ObjLinker != null) { record2.iOrder = src.handle.ObjLinker.BattleOrder; record2.actorSubType = (byte)src.handle.TheStaticData.TheOrganOnlyInfo.OrganType; } this.m_deadRecordList.Add(record2); } } } }
public byte GetDestroyTowerCount(COM_PLAYERCAMP killerCamp, int TowerType) { byte num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (((killerCamp == record.killerCamp) && (record.actorType == ActorTypeDef.Actor_Type_Organ)) && (record.actorSubType == TowerType)) { num = (byte)(num + 1); } } return(num); }
public int GetDeadNumAtTime(COM_PLAYERCAMP camp, ActorTypeDef actorType, int subType, int deadTime) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (((camp == record.camp) && (record.actorType == actorType)) && ((record.actorSubType == subType) && (record.deadTime < deadTime))) { num++; } } return(num); }
public byte GetDestroyTowerCount(COM_PLAYERCAMP killerCamp, int TowerType) { byte b = 0; for (int i = 0; i < this.m_deadRecordList.get_Count(); i++) { DeadRecord deadRecord = this.m_deadRecordList.get_Item(i); if (killerCamp == deadRecord.killerCamp && deadRecord.actorType == ActorTypeDef.Actor_Type_Organ && (int)deadRecord.actorSubType == TowerType) { b += 1; } } return(b); }
public int GetDeadNumAtTime(COM_PLAYERCAMP camp, ActorTypeDef actorType, int subType, int deadTime) { int num = 0; for (int i = 0; i < this.m_deadRecordList.get_Count(); i++) { DeadRecord deadRecord = this.m_deadRecordList.get_Item(i); if (camp == deadRecord.camp && deadRecord.actorType == actorType && (int)deadRecord.actorSubType == subType && deadRecord.deadTime < deadTime) { num++; } } return(num); }
public int GetKillSpecialMonsterNumAtTime(uint playerID, int deadTime, byte bySoldierType) { int num = 0; for (int i = 0; i < this.m_deadRecordList.get_Count(); i++) { DeadRecord deadRecord = this.m_deadRecordList.get_Item(i); if (deadRecord.AttackPlayerID == playerID && deadRecord.actorType == ActorTypeDef.Actor_Type_Monster && deadRecord.actorSubType == 2 && deadRecord.actorSubSoliderType == bySoldierType && deadRecord.deadTime < deadTime) { num++; } } return(num); }
public int GetBaronDeadCount() { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (((record.actorType == ActorTypeDef.Actor_Type_Monster) && (record.actorSubType == 2)) && (record.actorSubSoliderType == 8)) { num++; } } return(num); }
public int GetBaronDeadCount(COM_PLAYERCAMP killerCamp) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (((killerCamp == record.killerCamp) && (record.actorType == ActorTypeDef.Actor_Type_Monster)) && ((record.actorSubType == 2) && (record.actorSubSoliderType == 8))) { num++; } } return(num); }
public int GetBaronDeadCount(COM_PLAYERCAMP killerCamp) { int num = 0; for (int i = 0; i < this.m_deadRecordList.get_Count(); i++) { DeadRecord deadRecord = this.m_deadRecordList.get_Item(i); if (killerCamp == deadRecord.killerCamp && deadRecord.actorType == ActorTypeDef.Actor_Type_Monster && deadRecord.actorSubType == 2 && deadRecord.actorSubSoliderType == 8) { num++; } } return(num); }
public int GetKillSpecialMonsterNumAtTime(uint playerID, int deadTime, byte bySoldierType) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if ((((record.AttackPlayerID == playerID) && (record.actorType == ActorTypeDef.Actor_Type_Monster)) && ((record.actorSubType == 2) && (record.actorSubSoliderType == bySoldierType))) && (record.deadTime < deadTime)) { num++; } } return(num); }
public int GetKillDragonNumAtTime(uint playerID, int deadTime) { int num = 0; List <DeadRecord> list = new List <DeadRecord>(); for (int i = 0; i < this.m_deadRecordList.get_Count(); i++) { DeadRecord deadRecord = this.m_deadRecordList.get_Item(i); if (deadRecord.AttackPlayerID == playerID && deadRecord.actorType == ActorTypeDef.Actor_Type_Monster && deadRecord.actorSubType == 2 && (deadRecord.actorSubSoliderType == 9 || deadRecord.actorSubSoliderType == 7) && deadRecord.deadTime < deadTime) { num++; } } return(num); }
public int GetHeroDeadAtTime(uint playerID, int deadTime) { int num = 0; List <DeadRecord> list = new List <DeadRecord>(); for (int i = 0; i < this.m_deadRecordList.get_Count(); i++) { DeadRecord deadRecord = this.m_deadRecordList.get_Item(i); if (deadRecord.AttackPlayerID == playerID && deadRecord.actorType == ActorTypeDef.Actor_Type_Hero && deadRecord.deadTime < deadTime) { num++; } } return(num); }
public int GetSoldierDeadAtTime(uint playerID, int deadTime) { int num = 0; List <DeadRecord> list = new List <DeadRecord>(); for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (((record.AttackPlayerID == playerID) && (record.actorType == ActorTypeDef.Actor_Type_Monster)) && ((record.actorSubType == 1) && (record.deadTime < deadTime))) { num++; } } return(num); }
public int GetKillDragonNumAtTime(uint playerID, int deadTime) { int num = 0; int dragonId = Singleton <BattleLogic> .instance.DragonId; List <DeadRecord> list = new List <DeadRecord>(); for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (((record.AttackPlayerID == playerID) && (record.cfgId == dragonId)) && (record.deadTime < deadTime)) { num++; } } return(num); }
public int GetOrganTimeByOrder(int iOrder) { for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (record.actorType == ActorTypeDef.Actor_Type_Organ) { DeadRecord record2 = this.m_deadRecordList[i]; if (record2.iOrder == iOrder) { DeadRecord record3 = this.m_deadRecordList[i]; return(record3.deadTime); } } } return(0); }
public int GetKillSpecialMonsterNumAtTime(uint playerID, int deadTime, byte bySoldierType) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (((record.AttackPlayerID == playerID) && (record.actorType == ActorTypeDef.Actor_Type_Monster)) && (record.actorSubType == 2)) { ResMonsterCfgInfo dataCfgInfoByCurLevelDiff = MonsterDataHelper.GetDataCfgInfoByCurLevelDiff(record.cfgId); if (((dataCfgInfoByCurLevelDiff != null) && (dataCfgInfoByCurLevelDiff.bSoldierType == bySoldierType)) && (record.deadTime < deadTime)) { num++; } } } return(num); }
public int GetBaronDeadCount(COM_PLAYERCAMP killerCamp) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (((killerCamp == record.killerCamp) && (record.actorType == ActorTypeDef.Actor_Type_Monster)) && (record.actorSubType == 2)) { ResMonsterCfgInfo dataCfgInfoByCurLevelDiff = MonsterDataHelper.GetDataCfgInfoByCurLevelDiff(record.cfgId); if ((dataCfgInfoByCurLevelDiff != null) && (dataCfgInfoByCurLevelDiff.bSoldierType == 8)) { num++; } } } return(num); }
public int GetBaronDeadTime(int index) { int num = 0; for (int i = 0; i < this.m_deadRecordList.get_Count(); i++) { DeadRecord deadRecord = this.m_deadRecordList.get_Item(i); if (deadRecord.actorType == ActorTypeDef.Actor_Type_Monster && deadRecord.actorSubType == 2 && deadRecord.actorSubSoliderType == 8) { if (num == index) { return(this.m_deadRecordList.get_Item(i).deadTime); } num++; } } return(0); }
public int GetBaronDeadTime(int index) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (((record.actorType == ActorTypeDef.Actor_Type_Monster) && (record.actorSubType == 2)) && (record.actorSubSoliderType == 8)) { if (num == index) { DeadRecord record2 = this.m_deadRecordList[i]; return(record2.deadTime); } num++; } } return(0); }
public int GetKillDragonNumByPlayer(uint playerID) { int num = 0; int dragonId = Singleton <BattleLogic> .instance.DragonId; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (dragonId == record.cfgId) { DeadRecord record2 = this.m_deadRecordList[i]; if (record2.AttackPlayerID == playerID) { num++; } } } return(num); }
public int GetDragonDeadTime(int index) { int num = 0; int dragonId = Singleton <BattleLogic> .instance.DragonId; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (dragonId == record.cfgId) { if (num == index) { DeadRecord record2 = this.m_deadRecordList[i]; return(record2.deadTime); } num++; } } return(0); }
public int GetBaronDeadTime(int index) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if ((record.actorType == ActorTypeDef.Actor_Type_Monster) && (record.actorSubType == 2)) { ResMonsterCfgInfo dataCfgInfoByCurLevelDiff = MonsterDataHelper.GetDataCfgInfoByCurLevelDiff(record.cfgId); if ((dataCfgInfoByCurLevelDiff != null) && (dataCfgInfoByCurLevelDiff.bSoldierType == 8)) { if (num == index) { DeadRecord record2 = this.m_deadRecordList[i]; return(record2.deadTime); } num++; } } } return(0); }
public int GetDeadTime(COM_PLAYERCAMP camp, ActorTypeDef actorType, int index) { int num = 0; for (int i = 0; i < this.m_deadRecordList.Count; i++) { DeadRecord record = this.m_deadRecordList[i]; if (actorType == record.actorType) { DeadRecord record2 = this.m_deadRecordList[i]; if (camp == record2.camp) { if (num == index) { DeadRecord record3 = this.m_deadRecordList[i]; return(record3.deadTime); } num++; } } } return(0); }
private void OnDeadRecord(ref GameDeadEventParam prm) { if (prm.bImmediateRevive) { return; } PoolObjHandle <ActorRoot> src = prm.src; PoolObjHandle <ActorRoot> logicAtker = prm.logicAtker; if (!src || !logicAtker) { return; } if (src.get_handle().TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero) { DeadRecord deadRecord = new DeadRecord(src.get_handle().TheActorMeta.ActorCamp, src.get_handle().TheActorMeta.ActorType, src.get_handle().TheActorMeta.ConfigId, (int)Singleton <FrameSynchr> .get_instance().LogicFrameTick, logicAtker.get_handle().TheActorMeta.ActorCamp, logicAtker.get_handle().TheActorMeta.PlayerId, logicAtker.get_handle().TheActorMeta.ActorType); List <PoolObjHandle <ActorRoot> > heroActors = Singleton <GameObjMgr> .get_instance().HeroActors; int count = heroActors.get_Count(); for (int i = 0; i < count; i++) { if (heroActors.get_Item(i).get_handle().ObjID == prm.src.get_handle().ObjID&& i < 10) { deadRecord.fightTime = (int)Singleton <FrameSynchr> .get_instance().LogicFrameTick - this.m_arrHeroEnterCombatTime[i]; break; } } this.m_deadRecordList.Add(deadRecord); if (this.m_uiFBTime == 0u) { this.m_uiFBTime = (uint)Singleton <FrameSynchr> .get_instance().LogicFrameTick; } } else if (src.get_handle().TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Monster) { DeadRecord deadRecord2 = new DeadRecord(src.get_handle().TheActorMeta.ActorCamp, src.get_handle().TheActorMeta.ActorType, src.get_handle().TheActorMeta.ConfigId, (int)Singleton <FrameSynchr> .get_instance().LogicFrameTick, logicAtker.get_handle().TheActorMeta.ActorCamp, logicAtker.get_handle().TheActorMeta.PlayerId, logicAtker.get_handle().TheActorMeta.ActorType); if (src.get_handle().ActorControl != null) { deadRecord2.actorSubType = src.get_handle().ActorControl.GetActorSubType(); deadRecord2.actorSubSoliderType = src.get_handle().ActorControl.GetActorSubSoliderType(); if (deadRecord2.actorSubType == 2) { if (deadRecord2.actorSubSoliderType == 7) { deadRecord2.fightTime = (int)Singleton <FrameSynchr> .get_instance().LogicFrameTick - this.m_baojunEnterCombatTime; } else if (deadRecord2.actorSubSoliderType == 8) { deadRecord2.fightTime = (int)Singleton <FrameSynchr> .get_instance().LogicFrameTick - this.m_baronEnterCombatTime; } else if (deadRecord2.actorSubSoliderType == 9) { deadRecord2.fightTime = (int)Singleton <FrameSynchr> .get_instance().LogicFrameTick - this.m_bigDragonEnterCombatTime; } } } this.m_deadRecordList.Add(deadRecord2); this.m_deadMonsterNum++; } else if (src.get_handle().TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Organ && (src.get_handle().TheStaticData.TheOrganOnlyInfo.OrganType == 1 || src.get_handle().TheStaticData.TheOrganOnlyInfo.OrganType == 4 || src.get_handle().TheStaticData.TheOrganOnlyInfo.OrganType == 2)) { DeadRecord deadRecord3 = new DeadRecord(src.get_handle().TheActorMeta.ActorCamp, src.get_handle().TheActorMeta.ActorType, src.get_handle().TheActorMeta.ConfigId, (int)Singleton <FrameSynchr> .get_instance().LogicFrameTick, logicAtker.get_handle().TheActorMeta.ActorCamp, logicAtker.get_handle().TheActorMeta.PlayerId, logicAtker.get_handle().TheActorMeta.ActorType); if (src.get_handle().ObjLinker != null) { deadRecord3.iOrder = src.get_handle().ObjLinker.BattleOrder; deadRecord3.actorSubType = (byte)src.get_handle().TheStaticData.TheOrganOnlyInfo.OrganType; } this.m_deadRecordList.Add(deadRecord3); } }