Beispiel #1
0
 public World(ConfigurationOptions options, int d, int h, int w)
     : base(options)
 {
     for (int i = 0; i < d; i++) {
         layers.Add(new Layer(options,h,w));
     }
 }
Beispiel #2
0
 public Layer(ConfigurationOptions options, int h, int w)
     : base(options)
 {
     this.tiles = new Tile[h, w];
     for (int y = 0; y < h; y++) {
         for(int x = 0; x < w; x++) {
             this.tiles[y,x] = new EmptyTile();
         }
     }
 }
 public ConfigSensibleBase(ConfigurationOptions configurationOptions)
 {
     this.configurationOptions = configurationOptions;
 }
Beispiel #4
0
 public World(ConfigurationOptions options, int h, int w)
     : this(options,1,h,w)
 {
 }