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