public void ReceiveTeleportation(Object teleportedObject, bool teleportedToSelf) { if (null == teleportedObject) { throw new Exception("Null object passed into ReceiveTeleportation"); } TeleportState teleportState = (TeleportState) teleportedObject; teleportState.TeleportedToSelf = teleportedToSelf; _newOrganismQueue.Enqueue(teleportState); }