Ejemplo n.º 1
0
        static public IPiiig MakePiiig(int longCount, Point point, string path, Rectangle[] playerBounds, IHand hand, rockSteadyGame form, params string[] names)
        {
            IPiiig        piiigAdd;
            List <string> newNames = names.ToList();


            if (longCount > 0)
            {
                piiigAdd = new longPiiig(point, path, playerBounds, hand, newNames[0], form, 10);
            }
            else
            {
                piiigAdd = new piiig(point, path, playerBounds, hand, newNames[0], form);
            }

            if (names.Length == 0)
            {
                return(null);
            }
            if (names.Length == 1)
            {
                return(piiigAdd);
            }


            newNames.RemoveAt(0);

            return(new PiiigHerd(piiigAdd, MakePiiig(--longCount, point, path, playerBounds, hand, form, newNames.ToArray())));
        }
Ejemplo n.º 2
0
 ///<summary> Make the image for this Piiig the same as another </summary>
 ///<param name="source">Piiig to copy image from</param>
 ///<returns>nothing</returns>
 public void StealImageFrom(piiig source)
 {
     this.elementImage = source.elementImage;
 }