private bool IsActiveTrain(Simulation.AIs.AITrain t) { if (t == null) { return(false); } return((t.MovementState != AiMovementState.Static && !(t.TrainType == TrainType.AiIncorporated && !t.IncorporatingTrain.IsPathless)) || t.TrainType == TrainType.Player); }
private bool IsActiveTrain(Simulation.AIs.AITrain t) { if (t == null) { return(false); } return((t.MovementState != Simulation.AIs.AITrain.AI_MOVEMENT_STATE.AI_STATIC && !(t.TrainType == Train.TRAINTYPE.AI_INCORPORATED && !t.IncorporatingTrain.IsPathless) ) || t.TrainType == Train.TRAINTYPE.PLAYER); }