AI Agents in Virtual Reality Worlds: Programming Intelligent VR in C++