예제 #1
0
        public override string WhatAreYou(Being suspect)
        {
            if (suspect == null)
            {
                return("I don't exist");
            }
            else if (suspect.Forces.Contains(Force.DarkSide) &&
                     Forces.Contains(Force.DarkSide))
            {
                return("I'm a Sith");
            }
            else if (suspect.Forces.Contains(Force.LightSide))
            {
                return("I'm a Jedi");
            }

            return("I'm neither Sith nor Jedi");
        }
예제 #2
0
 public virtual string AreYouSith(Being suspect)
 {
     return("I'm not a Sith");
 }
예제 #3
0
파일: TheForce.cs 프로젝트: jtneumann/CS4B
 public abstract string WhatAreYou(Being suspect);