International Journal of Computer Games Technology / 2015 / Article / Alg 13

Research Article

Artificial Intelligence in Video Games: Towards a Unified Framework

Algorithm 13

Controller management in the CptMvAgent2D class.
class  CptMvAgent2D:  public  CptMvEntity2D
 //List of registered controllers
std::list<CptMvAgent2D_Controller>  controllers;
 //Registers a new controller
void  AddController(CptMvAgent2D_Controller  c)
 //Notifies controllers that a bot has been removed from the game
void  BotRemoved(CptMvAgent2D  bot)
std::list<CptMvAgent2D_Controller>::iterator it;
  for  (it = controllers.begin(); it != controllers.end(); ++it)

We are committed to sharing findings related to COVID-19 as quickly as possible. We will be providing unlimited waivers of publication charges for accepted research articles as well as case reports and case series related to COVID-19. Review articles are excluded from this waiver policy. Sign up here as a reviewer to help fast-track new submissions.