pub struct ExtraTurn {
pub player: PlayerId,
pub skip_untap: bool,
pub cant_set_schemes_in_motion: bool,
/* private fields */
}Expand description
An extra turn entry — tracks who gets the turn and any modifications.
Mirrors Java’s ExtraTurn class.
Fields§
§player: PlayerId§skip_untap: boolIf true, the untap step is skipped during this extra turn.
cant_set_schemes_in_motion: boolIf true, the player can’t set schemes in motion this turn (Archenemy).
Implementations§
Source§impl ExtraTurn
impl ExtraTurn
pub fn new(player: PlayerId) -> Self
pub fn get_player(&self) -> PlayerId
pub fn set_player(&mut self, player: PlayerId)
pub fn add_trigger(&mut self, del_trigger: String)
pub fn get_delayed_triggers(&self) -> &[String]
pub fn is_skip_untap(&self) -> bool
pub fn set_skip_untap(&mut self, skip: bool)
pub fn is_cant_set_schemes_in_motion(&self) -> bool
pub fn set_cant_set_schemes_in_motion(&mut self, cant: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExtraTurn
impl RefUnwindSafe for ExtraTurn
impl Send for ExtraTurn
impl Sync for ExtraTurn
impl Unpin for ExtraTurn
impl UnsafeUnpin for ExtraTurn
impl UnwindSafe for ExtraTurn
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.