[SOLVED] Multiplayer action like Casa in Perudo.

Game development with Board Game Arena Studio
Post Reply
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

[SOLVED] Multiplayer action like Casa in Perudo.

Post by Rudolf »

Hi,
I was wondering if there was a new type of actions in Structure of machinestates...
because with "multiplayer" state type, players "must" play ... and in Perudo, the casa is a player call during a turn...so not mandatory...
Last edited by Rudolf on 10 August 2015, 18:42, edited 1 time in total.
User avatar
pikiou
Posts: 389
Joined: 03 October 2011, 05:36

Re: Multiplayer action like Casa in Perudo.

Post by pikiou »

During an active state any player can send an action. And you can transition to another state as soon as a player sent an action.
If you want to make sure the player is active and the action is allowed for this state, call $this->gamestate->checkAction($actionName).
Otherwise if it doesn't matter if the player is active and the action is allowed for this state, call $this->gamestate->checkPossibleAction($actionName).
User avatar
Rudolf
Posts: 566
Joined: 24 December 2011, 23:04

Re: Multiplayer action like Casa in Perudo.

Post by Rudolf »

Thanks Pikiou :) ...
Post Reply

Return to “Developers”