summaryrefslogtreecommitdiff
path: root/src/ship.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ship.rs')
-rw-r--r--src/ship.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ship.rs b/src/ship.rs
index 0ea97e0..16a3d01 100644
--- a/src/ship.rs
+++ b/src/ship.rs
@@ -6,8 +6,9 @@ pub struct Ship {
name : String,
position : (f64, f64, f64),
velocity : (f64, f64, f64),
- t : Type,
+ mass_type : Type,
r : f64,
+ target : Option<usize>,
}
impl Ship {
@@ -16,8 +17,9 @@ impl Ship {
name : String::from(name),
position : position,
velocity : (0.0, 0.0, 0.0),
- t : Type::Ship,
+ mass_type : Type::Ship,
r : 100.0,
+ target : None,
}
}