Beispiel #1
0
 public Cell(Map map, int x, int y, int type)
 {
     this.map = map;
     this.x = x;
     this.y = y;
     this.type = type;
     this.soul = new DInt();
     this.updated = false;
 }
Beispiel #2
0
        public Map(int width, int height)
        {
            inst = this;
            this.width = width;
            this.height = height;

            this.cells = new Cell[this.width * this.height];

            for(int y = 0; y < this.height; ++y) {
                for(int x = 0; x < this.width; ++x) {
                    this.cells[y * this.width + x] = new Cell(this, x, y, 0);
                }
            }
        }