LogFAQs > #961311240

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, DB8, Database 9 ( 09.28.2021-02-17-2022 ), DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicProgrammingGeneral++
s0nicfan
12/29/21 4:53:45 PM
#16:


FYI if you're going to keep the characters in an array you might as well use a priority queue that's part of the language anyway. That way you don't run into weird array index issues and the array itself will always keep track of turn order. You'll just need to write a small comparator function that uses the Character's "turn timer" member variable as the basis of comparison.

https://www.geeksforgeeks.org/priority-queue-class-in-java/


---
"History Is Much Like An Endless Waltz. The Three Beats Of War, Peace And Revolution Continue On Forever." - Gundam Wing: Endless Waltz
... Copied to Clipboard!
Topic List
Page List: 1