project2D/turret.cpp
//--------------------------------------------------------------------------------------
// Draw: A virtual function from entity to render (or "draw") objects to the screen.
//
// Param:
//		renderer2D: a pointer to Renderer2D for rendering objects to screen.
//--------------------------------------------------------------------------------------
A virtual function from entity to render (or "draw") objects to the screen.
Param:
renderer2D: a pointer to Renderer2D for rendering objects to screen.
A virtual function from entity to render ( or " draw " ) objects to the screen . Param : renderer2D : a pointer to Renderer2D for rendering objects to screen .
void turret::Draw(Renderer2D* renderer2D)
{
	for (int i = 0; i < 15; i++)
	{
		bullets[i]->Draw(renderer2D);
	}
	Entity::Draw(renderer2D);
}
void turret :: Draw ( Renderer2D * renderer2D ) { for ( int i = 0 ; i < 15 ; i ++ ) { bullets [ i ] -> Draw ( renderer2D ) ; } Entity :: Draw ( renderer2D ) ; }
Draw: A virtual function from entity to render (or "draw") objects to the screen.
Draw : A virtual function from entity to render ( or " draw " ) objects to the screen .
// Draw each of the bullets in the array. // Call draw on enity.