pub enum GameMode {
Classic,
Modern,
}Expand description
The two ways to play, chosen when a game starts.
Variants§
Classic
The 1994 original’s rules, prices and limits.
Modern
The original with quality-of-life changes and the calendar and
bridging options. crate::catalog::catalog lists every difference
a frontend shows.
Implementations§
Source§impl GameMode
impl GameMode
Sourcepub fn ticket_prices(self) -> &'static [TicketPrice]
pub fn ticket_prices(self) -> &'static [TicketPrice]
The ticket price steps a theater can charge, cheapest first, or an empty list where the mode has no ticket price (Classic).
Sourcepub fn ticket_price_default(self) -> Option<&'static str>
pub fn ticket_price_default(self) -> Option<&'static str>
The step a theater with none set charges, or None where the mode
has no ticket price.
Sourcepub fn ticket_price(self, key: &str) -> Option<&'static TicketPrice>
pub fn ticket_price(self, key: &str) -> Option<&'static TicketPrice>
The listed step named key, or None where the mode lists none by
that name.
Source§impl GameMode
impl GameMode
Sourcepub fn cinema_screens(self) -> usize
pub fn cinema_screens(self) -> usize
How many screens a movie theater runs, each with its own film (#1950). SimTower’s theater shows one film; a Modern theater’s two floors are two screens with half the seats each.
Source§impl GameMode
impl GameMode
Sourcepub fn halos(self) -> &'static [Halo]
pub fn halos(self) -> &'static [Halo]
Every venue halo in this mode: the six Modern ones, none in Classic.
Sourcepub fn halo_of(self, kind: Kind) -> Option<&'static Halo>
pub fn halo_of(self, kind: Kind) -> Option<&'static Halo>
The halo a venue of kind casts in this mode, if any.
Sourcepub fn halo_strength(self, halo: &Halo, d: f64, family_size: f64) -> f64
pub fn halo_strength(self, halo: &Halo, d: f64, family_size: f64) -> f64
The hourly bonus or drain halo gives a room d floors from its
venue whose household is family_size (read only by a family-scaled
halo): the same values the hourly step applies, faded over the
halo’s own floors from its own max.
Trait Implementations§
impl Copy for GameMode
impl Eq for GameMode
impl StructuralPartialEq for GameMode
Auto Trait Implementations§
impl Freeze for GameMode
impl RefUnwindSafe for GameMode
impl Send for GameMode
impl Sync for GameMode
impl Unpin for GameMode
impl UnsafeUnpin for GameMode
impl UnwindSafe for GameMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.