testing the class fightinfo:

#0 debug_warn(no entry found!) called at [/var/www/html/php/include_class_techtree.php:270] #1 techtree->db_actualize(1) called at [/var/www/html/php/include_class_techtree.php:164] #2 techtree->add_user(1) called at [/var/www/html/php/include_redundant_fight_functions.php:1923] #3 fightinfo->adduser(1, att) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:25]

#0 debug_warn(no entry found!) called at [/var/www/html/php/include_class_techtree.php:270] #1 techtree->db_actualize(3) called at [/var/www/html/php/include_class_techtree.php:164] #2 techtree->add_user(3) called at [/var/www/html/php/include_redundant_fight_functions.php:1923] #3 fightinfo->adduser(3, def) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:26]


usercount (should be 2):2
last userid (should be 3):3
last user doing (should be def):def
fightx (should be 4):4
fighty (should be 4):4
fightz (should be 3):3
testing the class ships:
cannons of ship 2 (should be 1):2
hp of ship 2 (should be 10):10
namevar of ship 2 (should be md_hai_lng):md_hai_lng
name of ship 2 (should be hai):Hai
testing the class fleetmanager: (including fleet)

#0 debug_warn(emp_tch is no float ) called at [/var/www/html/php/include_redundant_fight_functions.php:3942] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(hack_tch is no number ) called at [/var/www/html/php/include_redundant_fight_functions.php:3945] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(normal_firepower is no float ) called at [/var/www/html/php/include_redundant_fight_functions.php:3947] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(normal_tch is no float) called at [/var/www/html/php/include_redundant_fight_functions.php:3948] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(ressteal is no number!) called at [/var/www/html/php/include_redundant_fight_functions.php:3949] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(resprot is no number!) called at [/var/www/html/php/include_redundant_fight_functions.php:3950] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(xpbonus_att is no number!) called at [/var/www/html/php/include_redundant_fight_functions.php:3951] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(xpbonus_def is no number!) called at [/var/www/html/php/include_redundant_fight_functions.php:3952] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(salvagebonus is no number!) called at [/var/www/html/php/include_redundant_fight_functions.php:3953] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(emp_targetqueue has no entries! ) called at [/var/www/html/php/include_redundant_fight_functions.php:3954] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(hack_targetqueue has no entries! ) called at [/var/www/html/php/include_redundant_fight_functions.php:3955] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

#0 debug_warn(normal_targetqueue has no entries! ) called at [/var/www/html/php/include_redundant_fight_functions.php:3956] #1 commandoship->commandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, , , , , , , , , , ) called at [/var/www/html/php/include_redundant_fight_functions.php:4380] #2 commandoshipmanager->addcommandoship(att, 1, 1, 4, 50000, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120, 20, 20, Array ([0] => 1,[1] => 2), 120) called at [/var/www/html/php/include_redundant_fight_functions_unit_tests.php:71]

well, lets try an over-all-check now.

attacking piranhas got an overall shieldbonus of 10.
attacking atlantis got an overall shieldbonus of 30.
tryout ships();
1=