I was wondering in which order stStateName and argStateName were called, and from a test here is what I found.
In states.inc.php I have this as the next state after gameSetup:
And here is the chronological sorted list of called functions:
Why is the argument function called 11 times if it's result is supposed to be unique?
In states.inc.php I have this as the next state after gameSetup:
Code: Select all
2 => array(
"name" => "test",
"description" => '',
"descriptionmyturn" => '',
"type" => "activeplayer",
"action" => "stTest",
'args' => 'argTest',
"possibleactions" => array("playCard"),
"transitions" => array("playCard" => 3)
),
Code: Select all
argTest
argTest
stTest
argTest
argTest
getAllDatas
argTest
getAllDatas
argTest
argTest
argTest
playCard <= result of me playing a card
argTest
argTest
argTest