Unused content cleanup
This commit is contained in:
parent
b7aff68e3a
commit
782e446c46
2 changed files with 0 additions and 21 deletions
|
|
@ -9,7 +9,6 @@ pub mod player;
|
|||
pub enum Factions {
|
||||
PlayerFaction,
|
||||
EnemyFaction,
|
||||
NeutralFaction,
|
||||
}
|
||||
|
||||
impl Factions {
|
||||
|
|
@ -18,17 +17,10 @@ impl Factions {
|
|||
Factions::PlayerFaction => match other {
|
||||
Factions::PlayerFaction => false,
|
||||
Factions::EnemyFaction => true,
|
||||
Factions::NeutralFaction => false,
|
||||
},
|
||||
Factions::EnemyFaction => match other {
|
||||
Factions::PlayerFaction => true,
|
||||
Factions::EnemyFaction => false,
|
||||
Factions::NeutralFaction => false,
|
||||
},
|
||||
Factions::NeutralFaction => match other {
|
||||
Factions::EnemyFaction => false,
|
||||
Factions::NeutralFaction => false,
|
||||
Factions::PlayerFaction => false,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,19 +24,6 @@ pub struct Velocity {
|
|||
}
|
||||
|
||||
impl Velocity {
|
||||
pub fn new(
|
||||
linear_speed: f32,
|
||||
rotation_speed: f32,
|
||||
max_linear_speed: f32,
|
||||
max_rotation_speed: f32,
|
||||
) -> Velocity {
|
||||
Velocity {
|
||||
linear_speed,
|
||||
rotation_speed,
|
||||
max_linear_speed: max_linear_speed,
|
||||
max_rotation_speed: max_rotation_speed,
|
||||
}
|
||||
}
|
||||
pub fn stopped(max_linear_speed: f32, max_rotation_speed: f32) -> Velocity {
|
||||
Velocity {
|
||||
linear_speed: 0.,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue