]>
Commit | Line | Data |
---|---|---|
9ad526c0 | 1 | using System; |
38c7d3f9 BB |
2 | using System.Collections.Generic; |
3 | using System.Linq; | |
4 | using System.Text; | |
5 | using Microsoft.Xna.Framework.Graphics; | |
6 | ||
7 | namespace SuperPolarity | |
8 | { | |
9 | class Renderer | |
10 | { | |
11 | ||
12 | static List<Actor> Actors; | |
13 | ||
14 | static Renderer() | |
15 | { | |
16 | Actors = new List<Actor>(); | |
17 | } | |
18 | ||
19 | static public void CheckIn(Actor actor) | |
20 | { | |
21 | Actors.Add(actor); | |
22 | } | |
23 | ||
24 | static public void CheckOut(Actor actor) | |
25 | { | |
26 | Actors.Remove(actor); | |
27 | } | |
28 | ||
29 | static public void Draw(SpriteBatch spriteBatch) | |
30 | { | |
31 | foreach (Actor actor in Actors) | |
32 | { | |
33 | actor.Draw(spriteBatch); | |
34 | } | |
35 | } | |
b587e9d8 BB |
36 | |
37 | static public void Empty() | |
38 | { | |
39 | Actors.Clear(); | |
40 | } | |
38c7d3f9 BB |
41 | } |
42 | } |