In states.inc.php I have this as the next state after gameSetup:
And in gamename.game.php:
Well, when I start the game, self::notifyAllPlayers is called but no notification is received.
And if I play a card, which runs state 2 again, a notification is received, as expected.
Ow, and placing this.setupNotifications() in the dojo object constructor doesn't change anything.
Code: Select all
2 => array(
"name" => "test",
"description" => '',
"descriptionmyturn" => '',
"type" => "activeplayer",
"action" => "stTest",
"possibleactions" => array("playCard"),
"transitions" => array("playCard" => 2)
),
Code: Select all
function stTest() {
self::notifyAllPlayers("testing", '', array());
}
And if I play a card, which runs state 2 again, a notification is received, as expected.
Ow, and placing this.setupNotifications() in the dojo object constructor doesn't change anything.