getPrevPlayerTable without index 0

Game development with Board Game Arena Studio
Post Reply
User avatar
Volker78
Posts: 66
Joined: 29 April 2020, 21:37

getPrevPlayerTable without index 0

Post by Volker78 »

In the docs, it was stated, that getPrevPlayerTable behaves like getNextPlayerTable, but it is missing index zero for the first player. I updated the docs, but it would be good, when that index would be added.
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: getPrevPlayerTable without index 0

Post by Victoria_La »

But what if suppose to do if you pass 0? Just return first player? In case just use other function no?
User avatar
Volker78
Posts: 66
Joined: 29 April 2020, 21:37

Re: getPrevPlayerTable without index 0

Post by Volker78 »

yes, it should return first player, like it was documented (it stated "it behaves exactly like the other function, but with prev instead of next")
User avatar
Victoria_La
Posts: 665
Joined: 28 December 2015, 20:55

Re: getPrevPlayerTable without index 0

Post by Victoria_La »

Yes its specifically missing from this table, but I think you can just override this method, if you really want it (or override getPlayerBefore)
Post Reply

Return to “Developers”