Beispiel #1
0
		public override List<BattleFighter> getTarget(BattleFighter attacker, BattleTeam defencerTeam)
		{
			List<BattleFighter> _curFighterList = new List<BattleFighter>();
			BattleFighter _fighter = defencerTeam.getActor(index);
			_curFighterList.Add(_fighter);
			return _curFighterList;
		}
		public override List<BattleFighter> getTarget(BattleFighter attacker, BattleTeam targetTeam)
		{
			List<BattleFighter> _curFighterList = new List<BattleFighter>();
			int _index = attacker.getOwnerTeam().getIntProp(BattleKeyConstants.BATTLE_KEY_HERO_TEAM_TARGET);
			BattleFighter _fighter = targetTeam.getActor(_index);
			_curFighterList.Add(_fighter);
			return _curFighterList;
		}
		protected internal virtual List<BattleFighter> calcTargetList(BattleFighter attacker, BattleTeam targetTeam)
		{
			int _targetFlag = calcResultFlag(attacker, targetTeam);

			List<BattleFighter> _resultTarget = new List<BattleFighter>();
			int _teamSize = targetTeam.allActorSize();
			for (int _i = 0; _i < _teamSize; _i++)
			{
				if (MathUtils.hasFlagIndex(_targetFlag, _i))
				{
					_resultTarget.Add(targetTeam.getActor(_i));
				}
			}
			return _resultTarget;
		}