Esempio n. 1
0
        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)
 {
 }
Esempio n. 3
0
 public void TransitionOwnership(IPlayer player)
 {
     Owner         = player;
     currentAction = rentAction;
 }
 public ChangeEvent(TKey id, IPropertyAction <T> propertyAction)
     : base(id, new List <IPropertyAction <T> > {
     propertyAction
 })
 {
 }
Esempio n. 5
0
 public MutationEvent(TKey id, IPropertyAction <T> propertyAction)
     : base(id, new List <IPropertyAction <T> > {
     propertyAction
 })
 {
 }
Esempio n. 6
0
 protected BasicEvent(TKey id, IPropertyAction <T> propertyAction)
     : this(id, new List <IPropertyAction <T> > {
     propertyAction
 })
 {
 }