Research Article

Artificial Intelligence in Video Games: Towards a Unified Framework

Algorithm 18

Conceptual view code in the onEnd callback function. The conceptual world destructor also destroys associated objects.
void  GravenAIModule::onEnd(bool  isWinner)
{
 //Destroy world
delete  cptWorld;
}