9.1 Main

The main.cc file is the main file project file which is where the execution starts. Within the main() method the following processes occurr

main()
  ReadOptions() -> reads a config file
  Run() – contains the gameloop

Run() contains the main game loop for each agent which performs the following tasks.

Run()
  Defines a initial behaviour based on an initial “agentType” we will use “naoagent”(default)
  PutMessage() -> sends the inital behaviour to the server as the first action the agent will perform
  While(gLoop) -> enters gameloop
  GetMessage() -> recieve gamestate from server
  behaviour->Think() determine new behaviour based on gamestate