Mercurial > projects > myrrdin
comparison import/myrrdin/consumers/tile.d @ 10:79b534bbda65
new director model
author | fred@reichbier.de |
---|---|
date | Sat, 19 Jul 2008 19:29:00 +0200 |
parents | 156a95e4c018 |
children |
comparison
equal
deleted
inserted
replaced
9:adc5e1eedb8a | 10:79b534bbda65 |
---|---|
34 import myrrdin.tilemap; | 34 import myrrdin.tilemap; |
35 | 35 |
36 class TileConsumer : Consumer { | 36 class TileConsumer : Consumer { |
37 public Tilemap map; | 37 public Tilemap map; |
38 | 38 |
39 this(Renderer renderer, Tilemap map) { | 39 this(Tilemap map) { |
40 super(renderer); | |
41 this.map = map; | 40 this.map = map; |
42 } | 41 } |
43 | 42 |
44 void draw() { | 43 void draw() { |
45 foreach(Sprite sprite; this.map.get_sprites()) { | 44 foreach(Sprite sprite; this.map.get_sprites()) { |