pub struct GameEntityCounterTable { /* private fields */ }Implementations§
Source§impl GameEntityCounterTable
impl GameEntityCounterTable
pub fn from_counter_map( object: GameEntity, counter_map: Vec<CounterMapValue>, ) -> GameEntityCounterTable
pub fn put( &mut self, source: Option<PlayerId>, object: GameEntity, counter_type: CounterType, amount: i32, )
pub fn is_empty(&self) -> bool
pub fn get( &self, source: Option<PlayerId>, object: GameEntity, counter_type: &CounterType, ) -> i32
pub fn counters(game: &GameState, object: GameEntity) -> Vec<(CounterType, i32)>
pub fn replace_counter_effect( &self, game: &mut GameState, trigger_handler: Option<&mut TriggerHandler>, agents: Option<&mut [Box<dyn PlayerAgent>]>, cause: Option<&SpellAbility>, is_effect: bool, params: RunParams, ) -> GameEntityCounterTable
pub fn apply_replaced_counter_effect( &self, game: &mut GameState, trigger_handler: Option<&mut TriggerHandler>, cause: Option<&SpellAbility>, params: RunParams, ) -> GameEntityCounterTable
Trait Implementations§
Source§impl Clone for GameEntityCounterTable
impl Clone for GameEntityCounterTable
Source§fn clone(&self) -> GameEntityCounterTable
fn clone(&self) -> GameEntityCounterTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GameEntityCounterTable
impl Debug for GameEntityCounterTable
Source§impl Default for GameEntityCounterTable
impl Default for GameEntityCounterTable
Source§fn default() -> GameEntityCounterTable
fn default() -> GameEntityCounterTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GameEntityCounterTable
impl RefUnwindSafe for GameEntityCounterTable
impl Send for GameEntityCounterTable
impl Sync for GameEntityCounterTable
impl Unpin for GameEntityCounterTable
impl UnsafeUnpin for GameEntityCounterTable
impl UnwindSafe for GameEntityCounterTable
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.