summaryrefslogtreecommitdiff
path: root/src/mass.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/mass.rs')
-rw-r--r--src/mass.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mass.rs b/src/mass.rs
index 71723cd..d91b292 100644
--- a/src/mass.rs
+++ b/src/mass.rs
@@ -1,11 +1,11 @@
use downcast::Any;
pub trait Mass : Any {
- fn new(name : &str, location : (f64, f64, f64)) -> Self where Self: Sized;
fn name(&self) -> &String;
- fn location(&self) -> (f64, f64, f64);
- fn set_location(&mut self, location : (f64, f64, f64));
+ fn position(&self) -> (f64, f64, f64);
fn serialize(&self) -> String;
+ fn process(&mut self);
+ fn give_acceleration(&mut self, acceleration : (f64, f64, f64));
}
#[derive(Serialize, Deserialize, Debug)]