pub struct DistrConfig { /* private fields */ }Implementations§
Source§impl DistrConfig
impl DistrConfig
pub const MIN_FOLLOW_PERIOD: Coord = 1
pub const MAX_FOLLOW_PERIOD: Coord = Coord::MAX
pub const MIN_FOLLOW_LIMIT: u32 = 1
pub const MAX_FOLLOW_LIMIT: u32 = u32::MAX
pub fn new() -> Self
pub fn monster_follow_limit_min(&self) -> u32
pub fn set_monster_follow_limit_min( &mut self, value: u32, ) -> Result<(), InvalidMonsterFollowLimit>
pub fn with_monster_follow_limit_min( self, value: u32, ) -> Result<Self, InvalidMonsterFollowLimit>
pub fn monster_follow_limit_peak(&self) -> u32
pub fn set_monster_follow_limit_peak( &mut self, value: u32, ) -> Result<(), InvalidMonsterFollowLimit>
pub fn with_monster_follow_limit_peak( self, value: u32, ) -> Result<Self, InvalidMonsterFollowLimit>
pub fn monster_follow_limit_max(&self) -> u32
pub fn set_monster_follow_limit_max( &mut self, value: u32, ) -> Result<(), InvalidMonsterFollowLimit>
pub fn with_monster_follow_limit_max( self, value: u32, ) -> Result<Self, InvalidMonsterFollowLimit>
pub fn monster_follow_period_min(&self) -> Coord
pub fn set_monster_follow_period_min( &mut self, value: Coord, ) -> Result<(), InvalidMonsterFollowPeriod>
pub fn with_monster_follow_period_min( self, value: Coord, ) -> Result<Self, InvalidMonsterFollowPeriod>
pub fn monster_follow_period_peak(&self) -> Coord
pub fn set_monster_follow_period_peak( &mut self, value: Coord, ) -> Result<(), InvalidMonsterFollowPeriod>
pub fn with_monster_follow_period_peak( self, value: Coord, ) -> Result<Self, InvalidMonsterFollowPeriod>
pub fn monster_follow_period_max(&self) -> Coord
pub fn set_monster_follow_period_max( &mut self, value: Coord, ) -> Result<(), InvalidMonsterFollowPeriod>
pub fn with_monster_follow_period_max( self, value: Coord, ) -> Result<Self, InvalidMonsterFollowPeriod>
pub fn finish<'a>(&self, game: &'a Game) -> Result<EventDistr<'a>, DistrError>
Trait Implementations§
Source§impl Clone for DistrConfig
impl Clone for DistrConfig
Source§fn clone(&self) -> DistrConfig
fn clone(&self) -> DistrConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DistrConfig
impl RefUnwindSafe for DistrConfig
impl Send for DistrConfig
impl Sync for DistrConfig
impl Unpin for DistrConfig
impl UnsafeUnpin for DistrConfig
impl UnwindSafe for DistrConfig
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