Beispiel #1
0
 public static Rock GetInstance()
 {
     if (rock == null)
     {
         rock         = new Rock();
         rock.Name    = "Rock";
         rock.LosesTo = new List <IJokenpoItem>()
         {
             Paper.GetInstance(),
                 Spock.GetInstance()
         };
     }
     return(rock);
 }
Beispiel #2
0
 public static Scissor GetInstance()
 {
     if (scissor == null)
     {
         scissor         = new Scissor();
         scissor.Name    = "Scissor";
         scissor.LosesTo = new List <IJokenpoItem>()
         {
             Rock.GetInstance(),
                 Spock.GetInstance()
         };
     }
     return(scissor);
 }
Beispiel #3
0
        public static Spock GetInstance()
        {
            if (spock == null)
            {
                spock         = new Spock();
                spock.Name    = "Spock";
                spock.LosesTo = new List <IJokenpoItem> {
                    Lizard.GetInstance(),
                        Paper.GetInstance()
                };
            }

            return(spock);
        }