pub fn display_error(err: BattleError)
{
	let error_str = match err
	{
		BattleError::None =>
		{
			unreachable!();
		}
		BattleError::Rejected =>
		{
			unreachable!();
		}
		BattleError::AttackLimit =>
		{
			"Selected move has no PP left."
		}
		BattleError::AttackTarget =>
		{
			"Invalid target."
		}
		BattleError::SwitchActive =>
		{
			"Selected party member is already active."
		}
		BattleError::SwitchHealth =>
		{
			"Selected party member has no health."
		}
		BattleError::SwitchQueued =>
		{
			"Selected party member is already queued to switch in."
		}
	};
	println!("Invalid selection: {}", error_str);
}
/// Returns a descriptive string of the given battle error.
Returns a descriptive string of the given battle error.
Returns a descriptive string of the given battle error .
pub fn display_error(err: BattleError)
{
	let error_str = match err
	{
		BattleError::None =>
		{
			unreachable!();
		}
		BattleError::Rejected =>
		{
			unreachable!();
		}
		BattleError::AttackLimit =>
		{
			"Selected move has no PP left."
		}
		BattleError::AttackTarget =>
		{
			"Invalid target."
		}
		BattleError::SwitchActive =>
		{
			"Selected party member is already active."
		}
		BattleError::SwitchHealth =>
		{
			"Selected party member has no health."
		}
		BattleError::SwitchQueued =>
		{
			"Selected party member is already queued to switch in."
		}
	};
	println!("Invalid selection: {}", error_str);
}
pub fn display_error ( err : BattleError ) { let error_str = match err { BattleError :: None => { unreachable ! ( ) ; } BattleError :: Rejected => { unreachable ! ( ) ; } BattleError :: AttackLimit => { " " } BattleError :: AttackTarget => { " " } BattleError :: SwitchActive => { " " } BattleError :: SwitchHealth => { " " } BattleError :: SwitchQueued => { " " } } ; println ! ( " " error_str ) ; }
Returns a descriptive string of the given battle error.
Returns a descriptive string of the given battle error .
err
BattleError
err
BattleError