public AskAquireLockAction(AbilityDescription description, Func <GenericShip> targetShip, Func <string> showMessage, AbilityPart action) { Description = description; GetTargetShip = targetShip; GetMessage = showMessage; Action = action; }
public AskToPerformAction(AbilityDescription description, ActionInfo actionInfo, AbilityPart afterAction = null ) { Description = description; ActionInfo = actionInfo; AfterAction = afterAction; }
public SelectShipAction(AbilityDescription abilityDescription, SelectShipFilter filter, AbilityPart action, AiSelectShipPlan aiSelectShipPlan) { AbilityDescription = abilityDescription; Filter = filter; Action = action; AiSelectShipPlan = aiSelectShipPlan; ShowSkipButton = true; }
public EachUpgradeCanDoAction( AbilityPart eachUpgradeAction, Action onFinish = null, ConditionsBlock conditions = null ) { EachUpgradeAction = eachUpgradeAction; OnFinish = onFinish; Conditions = conditions; }
public AskToUseAbilityAction ( AbilityDescription description, AbilityPart onYes, AbilityPart onNo = null, Func <bool> aiUseByDefault = null ) { Description = description; OnYes = onYes; OnNo = onNo; AiUseByDefault = aiUseByDefault ?? delegate { return(false); }; }
public AskToRotateShipAction ( AbilityDescription description, bool rotate90allowed = true, bool rotate180allowed = true, bool rotate0allowed = false, AbilityPart afterAction = null ) { Description = description; Rotate90Allowed = rotate90allowed; Rotate180Allowed = rotate180allowed; Rotate0Allowed = rotate0allowed; AfterAction = afterAction; }
public AssignTokenAction ( Type tokenType, Func <GenericShip> targetShip, Func <int> getCount = null, Func <string> showMessage = null, AbilityPart afterAction = null ) { TokenType = tokenType; GetShip = targetShip; GetCount = getCount; GetMessage = showMessage; AfterAction = afterAction; }
public RollDiceAction(DiceKind diceType, AbilityPart onCrit, AbilityPart onHit) { DiceType = diceType; OnCrit = onCrit; OnHit = onHit; }
public SectorCheckAction(ArcType sectorType, Func <GenericShip> targetShip, AbilityPart action) { SectorType = sectorType; GetTargetShip = targetShip; Action = action; }