air#

Units#

import pandas
pandas.set_option('display.max_columns', 1000)
pandas.set_option('display.max_rows', 1000)
pandas.set_option('display.max_colwidth', 200)

import empire_earth.units.relationships.matrices

epoch = 10
theater = 'Air'
units = empire_earth.units.attackers(epoch).values()
units = [unit for unit in units if unit.theater == theater]

pandas.DataFrame(units).set_index('name').style.set_sticky('rows')
  id type_id family building button_id hitpoints speed range attack attack_mode seconds_per_attack weapon_hit_id armor_shock armor_arrow armor_pierce armor_gun armor_laser armor_missile epoch_start epoch_stop cost_food cost_wood cost_stone cost_iron cost_gold
name                                                  
Flak Halftrack 146 5 32 Tank Factory 6 450 0.600000 7.000000 50 7 2.000000 5 0 30 30 8 10 0 10 12 100 0 0 100 0
88mm AA Gun 145 2 46 Citizen 1 600 0.000000 7.000000 25 7 1.000000 5 0 0 0 7 0 0 10 12 0 80 0 0 80
Cruiser - Dardo 163 4 9 Dock 3 2300 0.700000 8.000000 70 12 2.000000 5 0 20 20 25 0 0 10 12 0 150 0 0 150
Sopwith Fighter 72 3 5 Airport 6 425 1.000000 6.000000 17 12 0.500000 5 0 0 0 0 0 0 10 10 0 0 0 100 100
Fokker Fighter/Bomber 71 3 5 Airport 19 350 1.000000 6.000000 18 41 0.500000 5 0 0 0 0 0 0 10 10 0 0 0 100 100
Gotha Bomber 379 3 20 Airport 2 850 0.900000 5.000000 100 31 0.500000 5 0 0 0 0 0 0 10 10 0 0 0 200 200

Damage Dealt per Hit#

empire_earth.units.relationships.matrices.matrix_damage_dealt_per_hit(units)
  Flak Halftrack 88mm AA Gun Cruiser - Dardo Sopwith Fighter Fokker Fighter/Bomber Gotha Bomber
Flak Halftrack 0 0 0 50 50 75
88mm AA Gun 0 0 0 25 25 37
Cruiser - Dardo 0 0 0 87 87 98
Sopwith Fighter 0 0 0 21 21 23
Fokker Fighter/Bomber 1 1 13 8 8 25
Gotha Bomber 100 100 100 0 0 0

Damage Dealt per Second#

empire_earth.units.relationships.matrices.matrix_damage_dealt_per_second(units)
  Flak Halftrack 88mm AA Gun Cruiser - Dardo Sopwith Fighter Fokker Fighter/Bomber Gotha Bomber
Flak Halftrack 0.00 0.00 0.00 25.00 25.00 37.50
88mm AA Gun 0.00 0.00 0.00 25.00 25.00 37.00
Cruiser - Dardo 0.00 0.00 0.00 43.50 43.50 49.00
Sopwith Fighter 0.00 0.00 0.00 42.00 42.00 46.00
Fokker Fighter/Bomber 2.00 2.00 26.00 16.00 16.00 50.00
Gotha Bomber 200.00 200.00 200.00 0.00 0.00 0.00

Damage Dealt Out of Range#

empire_earth.units.relationships.matrices.matrix_damage_dealt_out_of_range(units)
  Flak Halftrack 88mm AA Gun Cruiser - Dardo Sopwith Fighter Fokker Fighter/Bomber Gotha Bomber
Flak Halftrack 0.00 0.00 0.00 25.00 25.00 83.33
88mm AA Gun 0.00 0.00 0.00 25.00 25.00 82.22
Cruiser - Dardo 0.00 inf 0.00 87.00 87.00 163.33
Sopwith Fighter 0.00 0.00 0.00 0.00 0.00 51.11
Fokker Fighter/Bomber 0.00 0.00 0.00 0.00 0.00 55.56
Gotha Bomber 0.00 0.00 0.00 0.00 0.00 0.00

Tactical Unit Relationships#

empire_earth.units.relationships.matrices.matrix_tactical(units)
  Flak Halftrack 88mm AA Gun Cruiser - Dardo Sopwith Fighter Fokker Fighter/Bomber Gotha Bomber
Flak Halftrack nan nan nan inf 17.31 0.11
88mm AA Gun nan nan 0.00 inf 23.08 0.14
Cruiser - Dardo nan inf nan inf 14.63 0.82
Sopwith Fighter 0.00 0.00 0.00 1.00 3.19 inf
Fokker Fighter/Bomber 0.06 0.04 0.07 0.31 1.00 inf
Gotha Bomber 9.09 6.92 1.22 0.00 0.00 nan

Strategic Unit Relationships#

empire_earth.units.relationships.matrices.matrix_strategic(units)
  Flak Halftrack 88mm AA Gun Cruiser - Dardo Sopwith Fighter Fokker Fighter/Bomber Gotha Bomber
Flak Halftrack nan nan nan inf 17.31 0.22
88mm AA Gun nan nan 0.00 inf 28.85 0.36
Cruiser - Dardo nan inf nan inf 9.75 1.09
Sopwith Fighter 0.00 0.00 0.00 1.00 3.19 inf
Fokker Fighter/Bomber 0.06 0.03 0.10 0.31 1.00 inf
Gotha Bomber 4.54 2.77 0.91 0.00 0.00 nan