/** * @brief Calculates the slowest chip speed of a fleet. * * @param[in] array $fleet List of chips * @param[in] array $user_techno List of techno ('RC','RI','PH', le reste est ignoré) * @param[in] string $class User class ($user_data['user_class']=array('user_class'=>'COL'/GEN/EXP/none)) * @return int the slowest speed */ function ogame_fleet_slowest_speed($fleet, $user_techno=null, $class='none'); /** * @brief Calculates time and conso to send a fleet. * * @param[in] string $coord_from,$coord_to Coordinates begin and end * @param[in] array $fleet Array of fleet and their number (array('PT'=>10,etc.)) * @param[in] int $speed_per Percentage of speed wanted * @param[in] array $user_techno List of techno ('RC','RI','PH', le reste est ignoré) * @param[in] string $class User class ($user_data['user_class']=array('user_class'=>'COL'/GEN/EXP/none)) * @param[in] array $server_config Info of universe ('num_of_galaxies','num_of_systems','donutGalaxy','donutSystem' only these are checked) default 9/499/1/1 * @param[in] string $type Indicates specific mission ('statio'/'expe', 'fuite') * @param[in] int $hour_mission Number of hour of the specific mission * @return array('conso', 'time'), time in seconds (one trip only) */ function ogame_fleet_send($coord_from, $coord_to, $fleet, $speed_per=100, $user_techno=null, $class='none', $server_config=null, $type='', $hour_mission=0) //Exemples d'utilisations ogame_fleet_send('1:1:1','1:1:1',array('PT'=>260),100,array('RC'=>20,'RI'=>17,'PH'=>16),'COL')); echo gmdate('z:H:i:s',$a['time']); //jour:heure:minute:seconde