Ejemplo n.º 1
0
    public static string Looks(this List <Dick> parDicks)
    {
        StringBuilder builder = new StringBuilder();

        for (int i = 0; i < parDicks.Count; i++)
        {
            Dick dick = parDicks[i];
            if (i == 0)
            {
                builder.Append(dick.Look());
            }
            else
            {
                builder.Append(dick.Look(false));
            }
            if (i == parDicks.Count - 2)
            {
                builder.Append(" and ");
            }
            else if (i == parDicks.Count - 1)
            {
                builder.Append(".");
            }
            else
            {
                builder.Append(", ");
            }
        }
        return(builder.ToString());
    }
Ejemplo n.º 2
0
Archivo: Blow.cs Proyecto: NoGRo/SbBjT
        public Blow(Dick dick, int speed)
        {
            Dick = dick;
            Speed = speed;
            TimerSpeed.Elapsed += TimerSpeedOnElapsed;
            TimerSpeed.Interval = Speed*1000;
            TimerSpeed.Stop();

            Dick.Feel += OnDickFeel;
        }
Ejemplo n.º 3
0
    public static float ReCycle(this List <Dick> dicks)
    {
        Dick toShrink = dicks[dicks.Count - 1];

        if (toShrink.Shrink())
        {
            dicks.Remove(toShrink);
            return(30f);
        }
        else
        {
            return(toShrink.Cost);
        }
    }
Ejemplo n.º 4
0
 public static string Look(this Dick parDick, bool capital = true)
 => $"{(capital ? "A" : "a")} {Settings.MorInch(parDick.Size)} long {parDick.Race} dick";
Ejemplo n.º 5
0
 public static float GrowCost(this Dick dick) => Mathf.Ceil(Mathf.Min(2000, 30 * Mathf.Pow(1.05f, dick.BaseSize)));
Ejemplo n.º 6
0
 public void Setup(PlayerMain player, Dick dick)
 {
     this.dick = dick;
     BaseSetup(player);
 }
Ejemplo n.º 7
0
        public ViewDick()
        {
            ListDicks.Add(new DickView {
                Array = Data.Genre, Name = "Genre"
            });
            ListDicks.Add(new DickView {
                Array = Data.Country, Name = "Country"
            });
            ListDicks.Add(new DickView {
                Array = Data.Producer, Name = "Producer"
            });

            Save = new CustomCommand <string>(
                (s) =>
            {
                if (string.IsNullOrEmpty(EditDickItem.Name))
                {
                    return;
                }
                if (EditDickItem.ID == -1)
                {
                    new DickSQL().InputDick(EditDickItem, SelectedDick.Name);

                    SelectedDick.Array.Add(EditDickItem); RaiseEvent(nameof(SelectedDick.Array));

                    EditDickItem = null;
                }
                else
                {
                    new DickSQL().UpdateDick(EditDickItem, SelectedDick.Name);
                    RaiseEvent(nameof(SelectedDick.Array));

                    EditDickItem = null;
                }
            }, () => EditDickItem != null);

            Add = new CustomCommand <string>(
                (s) =>
            {
                Dick newDick = new Dick()
                {
                    ID = -1
                };
                EditDickItem = newDick;
            });

            Del = new CustomCommand <Dick>(
                (s) =>
            {
                int check = new DickSQL().OutputDick(EditDickItem, SelectedDick.Name);
                if (check == 0)
                {
                    SelectedDick.Array.Remove(EditDickItem);
                    RaiseEvent(nameof(SelectedDick.Array));
                }



                /*
                 * if (new DickSQL().OutputDick(EditDickItem, SelectedDick.Name) != 0)
                 *  MessageBox.Show("Before deleting the current item, you need to change all the movies in which it participates \nКакая Досада");
                 * else
                 * {
                 *  SelectedDick.Array.Add(EditDickItem);
                 *  RaiseEvent(nameof(SelectedDick.Array));
                 * }*/
            }, () => EditDickItem != null);
        }