We used to have a gameType attribute which seems to have vanished in
the last revision. but working backwards from the isGamePublic
attribute we can work out if it is ladder.
The following should help you create an isGameLadder attribute. If it
returns true it is an AMM which in my eyes means it's a ladder game
(although come to think of it I have no proof or documentation that
that's true lol)
Search for the 3 top lines below in sc2replay.php and add the 2nd
lines underneath them.
function isGamePublic() { return $this->gamePublic; }function
isGameLadder() { return $this->gameLadder; }
private $gamePublic;
private $gameLadder;
$this->gamePublic = (($attribArray[0x0BC1][0x10] == "Priv")?
false:true);
$this->gameLadder = (($attribArray[0x0BC1][0x10] == "Amm")?
true:false);
Then call it in the same way you call isGamePublic, and voila. It will
return true if it is an AMM.