Saving data between rounds
From Talk:Main Page
Jump to navigation
Jump to search
Revision as of 6 October 2011 at 19:56.
The highlighted comment was created in this revision.
The highlighted comment was created in this revision.
Can I save data between rounds in the static variables of other classes other than my main robot class?
Yep. Anything that's static will stick around in any class.
Personally, I model most of my stuff so the main robot class has objects that are static (gun, movement, etc) and then everything else is non-static in those classes, but you can model it however you'd like.