Reversing turn order
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Reversing turn order
by elcnesh » 03 Jun 2014, 10:47
The attached patch provides code for reversing the game turn order, used on cards via the effect ReverseTurnOrder.
I'm not sure if it appears in other places than Game.getNextPlayerAfter, that's the only method that uses the turn order as far as I could find.
I'm not sure if it appears in other places than Game.getNextPlayerAfter, that's the only method that uses the turn order as far as I could find.
- Attachments
-
- forge_turn_order.txt
- (6.07 KiB) Downloaded 146 times
- elcnesh
- Posts: 290
- Joined: 16 May 2014, 15:11
- Location: Netherlands
- Has thanked: 34 times
- Been thanked: 92 times
Re: Reversing turn order
by friarsol » 03 Jun 2014, 14:03
Thanks elcnesh. I've approved your commit rights (not sure if it notified you). This one and the other diff look good. Feel free to commit them up. I believe the credentials are just the same ones you log into these forums with.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Reversing turn order
by swordshine » 03 Jun 2014, 14:24
Technically, some effects containing "Starting with you" (RepeatEach, BidLife, Vote) are also related to the turn order. Small tweaks are needed.
- swordshine
- Posts: 682
- Joined: 11 Jul 2010, 02:37
- Has thanked: 116 times
- Been thanked: 87 times
Re: Reversing turn order
by elcnesh » 03 Jun 2014, 14:37
Ah yes, that's right... I'm thinking about having Game.getPlayers() return a reversed array. So far I haven't found anything that seems problematic when doing that, but I'll check!
- elcnesh
- Posts: 290
- Joined: 16 May 2014, 15:11
- Location: Netherlands
- Has thanked: 34 times
- Been thanked: 92 times
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: MeganLeats, RebeccaChirm and 109 guests