示例#1
0
 /// <summary>
 /// Creates a new instance of hte TileCollectionEnumerator
 /// </summary>
 /// <param name="parent">The parent tileCollection</param>
 public TileCollectionEnumerator(TileCollection parent)
 {
     _tiles = parent.Tiles;
     _row   = 0;
     _col   = -1;
 }
示例#2
0
 /// <summary>
 /// Even if this TiledImage has already been constructed, we can initialize the tile collection later.
 /// </summary>
 /// <param name="width"></param>
 /// <param name="height"></param>
 public void Init(int width, int height)
 {
     _tiles           = new TileCollection(width, height);
     TypeName         = "TileImage";
     SpaceTimeSupport = SpaceTimeSupport.Spatial;
 }
示例#3
0
 /// <summary>
 /// Even if this TiledImage has already been constructed, we can initialize the tile collection later.
 /// </summary>
 /// <param name="width"></param>
 /// <param name="height"></param>
 public void Init(int width, int height)
 {
     _tiles = new TileCollection(width, height);
 }