示例#1
0
        public void Throw()
        {
            // Pseudo code for measuring distance, always succeeds now
            float distanceToTarget = 0;

            if (distanceToTarget <= Range)
            {
                TradeLog.AddMessage($"{Owner.Name} was thrown and hit successfully");
            }
            else
            {
                TradeLog.AddMessage($"{Owner.Name} was thrown and missed");
            }
        }
 void IObserver <RedrawNotification> .OnNext(RedrawNotification notification)
 {
     TradeLog.AddMessage(notification.message);
     OnShopUpdated();
 }