View Single Post
  #1   Spotlight this post!  
Unread 14-06-2004, 18:26
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: FIRST Video Game: Hammering out details

Ok, so, since you are using VC++, I assume you'll use classes. So, some ideas:
  • Individual classes for all robots. You can do fun things with these, such as pass in the robot spec file in the constructor, and the class could read it in and configure itself.
  • Class for the game. This class would hold information on what teams which robots are on, where each robot is (maybe this could be a robot class function?), where balls are on the field, make sure robots follow rules, etc. Maybe even it could even read in rules/field structure from a file?
  • Depending on how you do the physics engine, you could have classes for various field components, such as balls, goals, etc. For example, with the balls, they could keep track of bounces and other movement, relaying it on to the game controller.

Just some ideas. And some of that is rough obviously, like who gets to keep track of where robots/other moveable field objects are.

Yeah! I was helpful (or I tried).
__________________

Reply With Quote