Esempio n. 1
0
 public AskAquireLockAction(AbilityDescription description, Func <GenericShip> targetShip, Func <string> showMessage, AbilityPart action)
 {
     Description   = description;
     GetTargetShip = targetShip;
     GetMessage    = showMessage;
     Action        = action;
 }
Esempio n. 2
0
 public AskToPerformAction(AbilityDescription description, ActionInfo actionInfo, AbilityPart afterAction = null
                           )
 {
     Description = description;
     ActionInfo  = actionInfo;
     AfterAction = afterAction;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 5
0
 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;
 }
Esempio n. 7
0
 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;
 }
Esempio n. 8
0
 public RollDiceAction(DiceKind diceType, AbilityPart onCrit, AbilityPart onHit)
 {
     DiceType = diceType;
     OnCrit   = onCrit;
     OnHit    = onHit;
 }
Esempio n. 9
0
 public SectorCheckAction(ArcType sectorType, Func <GenericShip> targetShip, AbilityPart action)
 {
     SectorType    = sectorType;
     GetTargetShip = targetShip;
     Action        = action;
 }