示例#1
0
 protected sealed override void AddForce(Force force)
 {
     if (!Forces.Contains(force))
     {
         Forces.Add(force);
     }
 }
示例#2
0
 public void AddForce(ExternalForce3d force)
 {
     if (Forces.Contains(force))
     {
         return;
     }
     Forces.Add(force);
 }
示例#3
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");
        }