示例#1
0
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);
	}
}
示例#2
0
文件: node.cpp 项目: windkey/KATAMARI
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);
	}
}
示例#3
0
void Enemies::printEnemies(){
  int j = 0;
  for(Enemy *i = head; i !=NULL && j < 5; i = i->getNext(), j++){
    i->draw();
  }
}