' . PHP_EOL; echo '' . PHP_EOL; echo '
' . PHP_EOL; echo ' ' . PHP_EOL; echo 'Game Duration | ' . PHP_EOL; echo 'Maximum Concurrent Units | ' . PHP_EOL; echo 'Total Units at End | ' . PHP_EOL; echo 'Headless Server | ' . PHP_EOL; echo '||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
%s | %s", htmlspecialchars( $gameDuration, ENT_QUOTES ), PHP_EOL ); printf( "\t\t\t\t%s | %s", htmlspecialchars( $stats['maxConcurrentUnitCount'], ENT_QUOTES ), PHP_EOL ); printf( "\t\t\t\t%s | %s", htmlspecialchars( $stats['totalEndGameConcurrentUnitCount'], ENT_QUOTES ), PHP_EOL ); printf( "\t\t\t\t%s | %s", htmlspecialchars( $stats['isHeadlessServer'], ENT_QUOTES ), PHP_EOL ); echo "\t\t\t" . '||||||||||||||||||||||||||||
Player # | ' . PHP_EOL; echo 'Player Type | ' . PHP_EOL; echo 'Player Name | ' . PHP_EOL; echo 'Platform | ' . PHP_EOL; echo 'Resource Multiplier | ' . PHP_EOL; echo 'Faction Type | ' . PHP_EOL; echo 'Team | ' . PHP_EOL; echo 'Winner | ' . PHP_EOL; echo 'Kills | ' . PHP_EOL; echo 'Enemy Kills | ' . PHP_EOL; echo 'Deaths | ' . PHP_EOL; echo 'Units Produced | ' . PHP_EOL; echo 'Resources Harvested | ' . PHP_EOL; echo 'Score | ' . PHP_EOL; echo 'Quit Before Game Ended | ' . PHP_EOL; echo 'Quit Time | ' . PHP_EOL; echo '
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
%s | %s", htmlspecialchars( $player_stats['factionIndex']+1, ENT_QUOTES ), PHP_EOL ); $controlType = $player_stats['controlType']; switch ( $controlType ) { case 0: $controlTypeTitle = "Closed"; break; case 1: $controlTypeTitle = "CPU Easy"; break; case 2: $controlTypeTitle = "CPU"; break; case 3: $controlTypeTitle = "CPU Ultra"; break; case 4: $controlTypeTitle = "CPU Mega"; break; case 5: $controlTypeTitle = "Network Player"; break; case 6: $controlTypeTitle = "Network Unassigned"; break; case 7: $controlTypeTitle = "Human Host"; break; case 8: $controlTypeTitle = "Network CPU Easy"; break; case 9: $controlTypeTitle = "Network CPU"; break; case 10: $controlTypeTitle = "Network CPU Ultra"; break; case 11: $controlTypeTitle = "Network CPU Mega"; break; default: $controlTypeTitle = 'unknown'; } printf( "\t\t\t\t%s | %s", htmlspecialchars( $controlTypeTitle, ENT_QUOTES ), PHP_EOL ); printf( "\t\t\t\t%s | %s", htmlspecialchars( $player_stats['playerName'], ENT_QUOTES ), PHP_EOL ); printf( "\t\t\t\t%s | %s", htmlspecialchars( $player_stats['platform'], ENT_QUOTES ), PHP_EOL ); printf( "\t\t\t\t%s | %s", number_format(htmlspecialchars( $player_stats['resourceMultiplier'], ENT_QUOTES ),2), PHP_EOL ); printf( "\t\t\t\t%s | %s", htmlspecialchars( $player_stats['factionTypeName'], ENT_QUOTES ), PHP_EOL ); printf( "\t\t\t\t%s | %s", htmlspecialchars( $player_stats['teamIndex']+1, ENT_QUOTES ), PHP_EOL ); $wonGame_class = "player_loser"; if($player_stats['wonGame']) { $wonGame_class = "player_winner"; } printf( "\t\t\t\t%s | %s", $wonGame_class, htmlspecialchars( ($player_stats['wonGame'] ? "yes" : "no"), ENT_QUOTES ), PHP_EOL ); printf( "\t\t\t\t%s | %s", htmlspecialchars( $player_stats['killCount'], ENT_QUOTES ), PHP_EOL ); $player_score_class = "player_losing_score"; if($best_score_enemyKillCount == $player_stats['enemyKillCount']) { $player_score_class = "player_high_score"; } printf( "\t\t\t\t%s | %s", $player_score_class, htmlspecialchars( $player_stats['enemyKillCount'], ENT_QUOTES ), PHP_EOL ); printf( "\t\t\t\t%s | %s", htmlspecialchars( $player_stats['deathCount'], ENT_QUOTES ), PHP_EOL ); $player_score_class = "player_losing_score"; if($best_score_unitsProducedCount == $player_stats['unitsProducedCount']) { $player_score_class = "player_high_score"; } printf( "\t\t\t\t%s | %s", $player_score_class, htmlspecialchars( $player_stats['unitsProducedCount'], ENT_QUOTES ), PHP_EOL ); $player_score_class = "player_losing_score"; if($best_score_resourceHarvestedCount == $player_stats['resourceHarvestedCount']) { $player_score_class = "player_high_score"; } printf( "\t\t\t\t%s | %s", $player_score_class, htmlspecialchars( $player_stats['resourceHarvestedCount'], ENT_QUOTES ), PHP_EOL ); $player_score = $player_stats['enemyKillCount'] * 100 + $player_stats['unitsProducedCount'] * 50 + $player_stats['resourceHarvestedCount'] / 10; $player_score_class = "player_losing_score"; if($player_score == $best_score) { $player_score_class = "player_high_score"; } printf( "\t\t\t\t%s | %s", $player_score_class, number_format(htmlspecialchars( $player_score, ENT_QUOTES ),0), PHP_EOL ); printf( "\t\t\t\t%s | %s", htmlspecialchars( ($player_stats['quitBeforeGameEnd'] ? "yes" : "no"), ENT_QUOTES ), PHP_EOL ); $quitTime = $player_stats['quitTime']; $quitTime = getTimeString($quitTime); printf( "\t\t\t\t%s | %s", htmlspecialchars( $quitTime, ENT_QUOTES ), PHP_EOL ); echo "\t\t\t" . '
' . PHP_EOL;
echo '
' . PHP_EOL;
echo '