2024-04-07 16:55:41 +00:00
|
|
|
mod moves {
|
|
|
|
|
|
|
|
struct TestMove;
|
|
|
|
|
|
|
|
impl TestMove {
|
|
|
|
pub fn change_speed(self, choice, speed) {
|
|
|
|
println(`change_speed: ${choice.speed()}`);
|
|
|
|
println(`user level: ${choice.user().level()}`);
|
2024-05-08 13:46:09 +00:00
|
|
|
println(`owner: ${self.owner.level()}`);
|
|
|
|
speed += 100;
|
2024-04-07 16:55:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|