summaryrefslogtreecommitdiff
path: root/src/constants.rs
blob: 6f2cf6fb47dd419202cc3a39d469248a3c50d066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pub const ASTROID_COUNT: usize = 10;
pub const ASTROID_STORAGE_CAPACITY: usize = 100;
pub const ASTROID_STARTING_MINERALS_MAX: usize = 20;
pub const ASTROID_STARTING_MINERALS_MIN: usize = 5;
pub const ASTROID_STARTING_VELOCITY_MAX: f64 = 0.5;
pub const ASTROID_STARTING_POSITION_MAX: f64 = 50.0;

pub const SHIP_STORAGE_CAPACITY: usize = 100;
pub const SHIP_CONSTRUCTION_IRON_COST: usize = 5;
pub const SHIP_CONSTRUCTION_TIME: u64 = 5;
pub const SHIP_MINING_TIME: u64 = 5;
pub const SHIP_MINING_RANGE: f64 = 10.0;
pub const SHIP_NAVIGATION_TIME: u64 = 3;
pub const SHIP_NAVIGATION_RANGE: f64 = 100.0;
pub const SHIP_REFINERY_TIME: u64 = 5;
pub const SHIP_TRACTORBEAM_STRENGTH: f64 = 0.1;
pub const SHIP_TRACTORBEAM_RANGE: f64 = 50.0;
pub const SHIP_TRACTORBEAM_ACQUIRE_RANGE: f64 = 1.0;
pub const SHIP_TRACTORBEAM_CONTROLSYSTEM_KP: f64 = 1.0;
pub const SHIP_TRACTORBEAM_CONTROLSYSTEM_KI: f64 = 0.01;
pub const SHIP_TRACTORBEAM_CONTROLSYSTEM_KD: f64 = 0.001;
pub const SHIP_TRACTORBEAM_CONTROLSYSTEM_DT: f64 = 0.0001;
pub const SHIP_ENGINES_FUEL_START: f64 = 100.0;
pub const SHIP_ENGINES_ACCELERATION: f64 = 0.1;

pub const IRON_SIZE: usize = 1;
pub const HYDROGEN_SIZE: usize = 1;
pub const CRUDE_MINERALS_SIZE: usize = 10;

pub const SLEEP_DURATION: u64 = 100;
pub const FLOAT_PRECISION: f64 = 0.001;