MCPcopy Create free account
hub / github.com/Swampsoft/solitaire / animate

Method animate

src/cs/mod.rs:138–148  ·  view source on GitHub ↗
(&mut self, card: Suite, pos: Point2, z: f32, ani: Animation)

Source from the content-addressed store, hash-verified

136 }
137
138 pub fn animate(&mut self, card: Suite, pos: Point2, z: f32, ani: Animation) {
139 let mut stack = Stack::new(StackRole::Animation);
140 stack.push_card(card);
141
142 self.new_entity()
143 .with_position(pos)
144 .with_zorder(z)
145 .with_animation(ani)
146 .with_stack(stack)
147 .build();
148 }
149}
150
151pub struct EntityBuilder<'a> {

Callers 6

animate_shuffleMethod · 0.80
animate_dealMethod · 0.80
animate_giveupMethod · 0.80
animate_victoryMethod · 0.80
auto_move_systemMethod · 0.80
button_click_systemMethod · 0.80

Calls 7

push_cardMethod · 0.80
buildMethod · 0.80
with_stackMethod · 0.80
with_animationMethod · 0.80
with_zorderMethod · 0.80
with_positionMethod · 0.80
new_entityMethod · 0.80

Tested by

no test coverage detected