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

Method get_stackshift

src/types.rs:133–143  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

131 }
132
133 pub fn get_stackshift(&self) -> Vector2 {
134 match self.role {
135 StackRole::Dragon => Vector2::new(0.1, -0.25),
136 //StackRole::DragonLocked => Vector2::new(0.1, -0.25),
137 StackRole::Flower => Vector2::new(0.1, -0.25),
138 StackRole::Target => Vector2::new(0.1, -0.25),
139 StackRole::Sorting => Vector2::new(0.0, 32.0),
140 StackRole::Generic => Vector2::new(0.0, 32.0),
141 StackRole::Animation => Vector2::new(0.0, 0.0),
142 }
143 }
144
145 pub fn split(&mut self, at: usize) -> Stack {
146 Stack {

Callers 9

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
begin_drag_systemMethod · 0.80
done_drag_systemMethod · 0.80
stack_render_systemMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected