本文整理匯總了C#中Battle.onAction方法的典型用法代碼示例。如果您正苦於以下問題:C# Battle.onAction方法的具體用法?C# Battle.onAction怎麽用?C# Battle.onAction使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Battle
的用法示例。
在下文中一共展示了Battle.onAction方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: fireEvent
// @Override
public virtual void fireEvent(Battle battle)
{
BattleTeam _team = battle.BattleArmy.getActor(sideIndex);
if (_team == null)
{
// TODO: loggers.error
return;
}
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final boolean _rightInfo = _team.handleBattleFightInfo(targetIndex, heroIndex);
bool _rightInfo = _team.handleBattleFightInfo(targetIndex, heroIndex);
if (!_rightInfo)
{
Logger.Log("#ProduceFighterIndexAction.fireEvent.error: " + toInfoString());
return;
}
battle.updateBattleState(BattleState.RUNTIME);
_team.beforeAttack(new BeforeAttackEvent());
BattleLogicHelper.refreshState(battle.BattleArmy);
battle.StoreHandler.handleStartAttack(heroIndex.Length);
battle.onAction();
}