public static bool IsInThreadRange(ICharacterHandler source, ICharacterHandler target) { return(Math.Abs(source.Position.X - target.Position.X) < 2 && Math.Abs(source.Position.Y - target.Position.Y) < 2); }
public CharacterController(ICharacterHandler characterHandler) { _characterHandler = characterHandler; }
public void RegisterRegions(ICharacterHandler handler) { _characterHandlers.Add(handler); }