Esempio n. 1
0
 /// <summary>
 /// Render the object
 /// </summary>
 /// <param name="elapsedTime">Amount of elapsed time in seconds</param>
 /// <param name="lineBatch">LineBatch to render to</param>
 public virtual void Draw(float elapsedTime, LineBatch lineBatch)
 {
     if (IsAlive)
     {
         if (polygon != null)
         {
             if (lineBatch == null)
             {
                 throw new ArgumentNullException("lineBatch");
             }
             lineBatch.DrawPolygon(polygon, color);
         }
     }
 }