How to customize turn control from TurnRoom ?

0 votes
i need server to control the turn for these cases from using TurnRoom:

- server to arrange the order of user's turn

- server to set first turn when game start

please advise?
asked Oct 29, 2015 in AppWarpS2 by nguyenanhdung (51 points)

1 Answer

0 votes
 
Best answer

Hi Guyen,

Yes you can override RoomAdapter features to write your own custom business logic.

  • You can start Game onTimerTic function and can mantain game state.
  • You also set user turn respective of this.
  • You can mantain a order of users when they joined like a list collection and set a property like waiting state and reset state as Active on new Game start.
  • Based on the order collection you can also write your own game logic to override turn onMoveRequest function.

You can refer the source code that I have shared on DropBox

Let me know if helps

Thanks & Regards

Vishnu Garg

answered Oct 30, 2015 by Vishnu Garg (674 points)
selected Nov 16, 2015 by nguyenanhdung
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...