示例#1
0
文件: tile.cs 项目: Northcode/ncdf
 public static void set(int x, int y, tile t)
 {
     set(getc(x, y), t);
 }
示例#2
0
文件: tile.cs 项目: Northcode/ncdf
 public static void init()
 {
     tileArray = new tile[width * height];
     for (int i = 0; i < tileArray.Length; i++)
     {
         tileArray[i] = new tile();
         tileArray[i].id = i;
     }
 }
示例#3
0
文件: tile.cs 项目: Northcode/ncdf
 public static void set(int n, tile t)
 {
     tileArray[n] = t;
     tileArray[n].id = n;
 }
示例#4
0
文件: tile.cs 项目: Northcode/ncdf
 private void SpreadTo(Random r, int l, tile t)
 {
     t.ascii = this.ascii;
     t.forecolor = this.forecolor;
     t.backcolor = this.backcolor;
     t.type = this.type;
     t.Spread(r, l);
 }