Research Article

Artificial Intelligence in Video Games: Towards a Unified Framework

Algorithm 14

Conceptual AI registration in Graven. The RegisterDMController function is defined in the DMController module and is used to instantiate the CptBot class.
Raven_Bot::Raven_Bot(Raven_Game  world,Vector2D pos):
   ⋯
{
 //Create the conceptual projection
cpt =  new  CptMvAgent2D(world->GetCptWorld2D());
 //Synchronize initialization
sync();
 //Instantiate and register a DMController
RegisterDMController(cpt);
}