Class MoneyTransferBase_LegalAction
Inheritance
System.Object
MoneyTransferBase_LegalAction
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public abstract class MoneyTransferBase_LegalAction : LegalAction, INotifyPropertyChanged, IExecutiveAction, IController, IViewController, IHasUniversalID, IDescribable, ICustomValidity, IValidity
Constructors
MoneyTransferBase_LegalAction()
Declaration
protected MoneyTransferBase_LegalAction()
Properties
Amount
Declaration
public GameValue<float> Amount { get; set; }
Property Value
Currency
Declaration
public GameValue<Currency> Currency { get; set; }
Property Value
PreventIfUnableToPay
Declaration
public GameValue<bool> PreventIfUnableToPay { get; set; }
Property Value
Methods
CheckJurisdiction(Eval<BankAccount>, Settlement, Boolean, out LocString)
We check whether the specified account can be used with the specified context and if not we return false and an error message.
Declaration
protected bool CheckJurisdiction(Eval<BankAccount> account, Settlement jurisdictionSettlement, bool mustBeGovernmentAccount, out LocString errorMessage)
Parameters
Returns
Type |
Description |
System.Boolean |
|
DescribeUnableToPay()
Declaration
protected LocString DescribeUnableToPay()
Returns
DoTransfer(LocString, IContextObject, Settlement, Single, Currency, Boolean, AccountChangeSet)
Declaration
protected abstract PostResult DoTransfer(LocString description, IContextObject context, Settlement jurisdictionSettlement, float val, Currency currency, bool preventIfUnableToPay, AccountChangeSet acc)
Parameters
Returns
Declaration
protected override PostResult Perform(Law law, GameAction action, AccountChangeSet acc)
Parameters
Returns
Overrides
PerformExecutiveAction(User, IContextObject, Settlement, AccountChangeSet)
Declaration
public PostResult PerformExecutiveAction(User user, IContextObject context, Settlement jurisdictionSettlement, AccountChangeSet acc)
Parameters
Returns
Valid()
Declaration
Returns
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods