void Game::drawEntities() { for (std::vector<Enemy*>::iterator it = entities_list.begin(); it != entities_list.end(); ++it) { Enemy* t = *it; t->draw(window, 0, 0); } }
void RootScene::draw(){ if( !root ) return; D3DXMATRIX matWorld; D3DXMatrixIdentity( &matWorld ); swprintf_s(s_information,STRING_SIZE, F1_INFO ); //draw background ground_plan.draw(); //draw enemy enemy.draw( matWorld ); //draw main_role main_role.root->draw( matWorld ); //detect all enemy nodelist ch = enemy.root->child; for( nodelist::iterator it = ch.begin(); it != ch.end() ; it++ ){ main_role.root->collision_detection(*it); } }
void Enemies::printEnemies(){ int j = 0; for(Enemy *i = head; i !=NULL && j < 5; i = i->getNext(), j++){ i->draw(); } }