Example #1
0
File: Tower.cs Project: subhan1/XNA
 public void AddDrawable(DrawData drawable)
 {
     if (drawable == null || _toDraw.Contains(drawable))
     {
         Console.WriteLine("Unable to add drawable!");
         return;
     }
     _toDraw.Add(drawable);
 }
Example #2
0
File: Tower.cs Project: subhan1/XNA
 protected virtual void drawElement(DrawData drawable)
 {
     _drawer.Draw(drawable.Art, Position,
             drawable.Source, Color.White);
 }
Example #3
0
File: Tower.cs Project: subhan1/XNA
 public void RemoveDrawable(DrawData toRemove)
 {
     _toDraw.Remove(toRemove);
 }
Example #4
0
File: Game1.cs Project: subhan1/XNA
 private void drawElement(DrawData toDraw)
 {
     spriteBatch.Draw(
         toDraw.Art, toDraw.Destination,
         toDraw.Source, toDraw.BlendColor);
 }