summaryrefslogtreecommitdiff
path: root/src/mass.rs
diff options
context:
space:
mode:
authortom barrett <spalf0@gmail.com>2018-03-05 08:14:14 -0600
committertom barrett <spalf0@gmail.com>2018-03-05 08:14:14 -0600
commit160d7b6e50df6d818f6882c033398d49193bd804 (patch)
treeb211d052dce89c9c69012c8e6c7f9de648322086 /src/mass.rs
parent233aa5d803e8015f78f663bc9af6bb33e56eb96e (diff)
-brought back downcasting, moved connection functions inside the structure
Diffstat (limited to 'src/mass.rs')
-rw-r--r--src/mass.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mass.rs b/src/mass.rs
index d6feb6c..22862b6 100644
--- a/src/mass.rs
+++ b/src/mass.rs
@@ -5,11 +5,8 @@ pub trait Mass : Any {
fn position(&self) -> (f64, f64, f64);
fn serialize(&self) -> String;
fn process(&mut self);
- fn slow(&mut self);
fn give_acceleration(&mut self, acceleration : (f64, f64, f64));
fn box_clone(&self) -> Box<Mass>;
- fn range(&self) -> f64;
- fn give_target(&mut self, target : Option<usize>);
}
impl Clone for Box<Mass> {