pub fn new(parties: &[Party]) -> Self
	{
		let mut queue = Vec::with_capacity(parties.len());
		let mut total = 0;
		for party in parties
		{
			total += party.active_count();
			queue.push(PartyCommand::new(party.active_count()));
		}
		BattleQueue
		{
			waiting: total,
			total: total,
			queue: queue,
		}
	}
/// Initializes a new empty queue that is not ready.
Initializes a new empty queue that is not ready.
Initializes a new empty queue that is not ready .
pub fn new(parties: &[Party]) -> Self
	{
		let mut queue = Vec::with_capacity(parties.len());
		let mut total = 0;
		for party in parties
		{
			total += party.active_count();
			queue.push(PartyCommand::new(party.active_count()));
		}
		BattleQueue
		{
			waiting: total,
			total: total,
			queue: queue,
		}
	}
pub fn new ( parties : & [ Party ] ) -> Self { let mut queue = Vec :: with_capacity ( parties . len ( ) ) ; let mut total = 0 ; for party in parties { total += party . active_count ( ) ; queue . push ( PartyCommand :: new ( party . active_count ( ) ) ) ; } BattleQueue { waiting : total , total : total , queue : queue , } }
Initializes a new empty queue that is not ready.
Initializes a new empty queue that is not ready .
parties
&[Party]
parties
&[Party]