pub fn barracks_correct_placement(&self) -> Option<Point2> {
		self.barracks_in_middle().map(|pos| {
			if self
				.corner_depots()
				.map_or(false, |depots| pos.x + 1.0 > depots[0].x.max(depots[1].x))
			{
				pos
			} else {
				pos.offset(-2.0, 0.0)
			}
		})
	}
/// Returns correct position to build barrack in terran wall with addon.
Returns correct position to build barrack in terran wall with addon.
Returns correct position to build barrack in terran wall with addon .
pub fn barracks_correct_placement(&self) -> Option<Point2> {
		self.barracks_in_middle().map(|pos| {
			if self
				.corner_depots()
				.map_or(false, |depots| pos.x + 1.0 > depots[0].x.max(depots[1].x))
			{
				pos
			} else {
				pos.offset(-2.0, 0.0)
			}
		})
	}
pub fn barracks_correct_placement ( & self ) -> Option < Point2 > { self . barracks_in_middle ( ) . map ( | pos | { if self . corner_depots ( ) . map_or ( false , | depots | pos . x + 1.0 > depots [ 0 ] . x . max ( depots [ 1 ] . x ) ) { pos } else { pos . offset ( - 2.0 , 0.0 ) } } ) }
Returns correct position to build barrack in terran wall with addon.
Returns correct position to build barrack in terran wall with addon .
&self
&self