26 double e,
double c,
double r)
27 : type(t), id(0), ship(0), subtype(s), status(NOMINAL), availability(1.0f),
28 safety(1.0f), stability(1.0f), crit_level(0.5f), net_avail(-1.0f),
29 mount_rel(0.0f, 0.0f, 0.0f), radius(0.0f), safety_overload(0.0f),
30 hull_factor(0.5f), energy((float) e), capacity((float) c), sink_rate((float) r),
31 power_level(1.0f), power_flags(0), source_index(0), power_on(true),
32 explosion_type(0), name(n), abrv(name), design(0), emcon(3)
47 : type(s.type), id(s.id), ship(0), subtype(s.subtype), status(s.status),
48 availability(s.availability), safety(s.safety), stability(s.stability),
49 crit_level(s.crit_level), net_avail(-1.0f),
50 mount_rel(s.mount_rel), radius(s.radius), safety_overload(0.0f),
51 hull_factor(s.hull_factor), energy(s.energy), capacity(s.capacity),
52 sink_rate(s.sink_rate), power_level(s.power_level), power_flags(s.power_flags),
53 source_index(s.source_index), power_on(s.power_on), max_value(s.max_value),
54 explosion_type(s.explosion_type), name(s.name), abrv(s.abrv), design(s.design),
128 bool changed =
false;
147 if (index >= 1 && index <= 3) {
155 if (index >= 1 && index <= 3) {
379 energy = (float) (delivered_energy/seconds);
383 energy += (float) delivered_energy;