public Property(int locationIndex, PropertyGroup propertyGroup, IPropertyAction rentAction, Money?cost = null, Money?rent = null, bool isMortgaged = false) { LocationIndex = locationIndex; PropertyGroup = propertyGroup; Cost = cost ?? new Money(0); Rent = rent ?? new Money(0); IsMortgaged = isMortgaged; purchaseAction = new PurchasePropertyAction(); this.rentAction = rentAction; currentAction = purchaseAction; }
public OrderedMutationEvent(TKey id, IPropertyAction <T> propertyAction, TOrder order) : this(id, new List <IPropertyAction <T> > { propertyAction }, order) { }
public void TransitionOwnership(IPlayer player) { Owner = player; currentAction = rentAction; }
public ChangeEvent(TKey id, IPropertyAction <T> propertyAction) : base(id, new List <IPropertyAction <T> > { propertyAction }) { }
public MutationEvent(TKey id, IPropertyAction <T> propertyAction) : base(id, new List <IPropertyAction <T> > { propertyAction }) { }
protected BasicEvent(TKey id, IPropertyAction <T> propertyAction) : this(id, new List <IPropertyAction <T> > { propertyAction }) { }