pub struct Ramp {
pub points: Vec<(usize, usize)>,
/* private fields */
}
Expand description
Fields§
§points: Vec<(usize, usize)>
All points which belong to this ramp.
Implementations§
Source§impl Ramp
impl Ramp
Sourcepub fn top_center(&self) -> Option<(usize, usize)>
pub fn top_center(&self) -> Option<(usize, usize)>
Returns center of upper points of the ramp.
Sourcepub fn bottom_center(&self) -> Option<(usize, usize)>
pub fn bottom_center(&self) -> Option<(usize, usize)>
Returns center of lower points of the ramp.
Sourcepub fn corner_depots(&self) -> Option<[Point2; 2]>
pub fn corner_depots(&self) -> Option<[Point2; 2]>
Returns correct positions to build corner supplies in terran wall.
Sourcepub fn barracks_in_middle(&self) -> Option<Point2>
pub fn barracks_in_middle(&self) -> Option<Point2>
Returns correct position to build barrack in terran wall without addon.
Sourcepub fn barracks_correct_placement(&self) -> Option<Point2>
pub fn barracks_correct_placement(&self) -> Option<Point2>
Returns correct position to build barrack in terran wall with addon.
Sourcepub fn depot_in_middle(&self) -> Option<Point2>
pub fn depot_in_middle(&self) -> Option<Point2>
Returns correct position to build supply in middle of wall from 3 supplies.
Sourcepub fn protoss_wall_pylon(&self) -> Option<Point2>
pub fn protoss_wall_pylon(&self) -> Option<Point2>
Returns correct position to build pylon in protoss wall.
Sourcepub fn protoss_wall_buildings(&self) -> Option<[Point2; 2]>
pub fn protoss_wall_buildings(&self) -> Option<[Point2; 2]>
Returns correct positions of 3x3 buildings in protoss wall.
Sourcepub fn protoss_wall_warpin(&self) -> Option<Point2>
pub fn protoss_wall_warpin(&self) -> Option<Point2>
Returns correct position of unit to close protoss wall.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ramp
impl RefUnwindSafe for Ramp
impl !Send for Ramp
impl !Sync for Ramp
impl Unpin for Ramp
impl UnwindSafe for Ramp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more