Beispiel #1
0
 public Map(MapConfiguration mapConfiguration)
 {
     _mapConfiguration = mapConfiguration;
     _dimensions       = new Size(_mapConfiguration.MAP_SIZE.Width / _mapConfiguration.FLOOR_TILE_SIZE.Width, _mapConfiguration.MAP_SIZE.Height / _mapConfiguration.FLOOR_TILE_SIZE.Height);
     _map              = new long[_dimensions.Width, _dimensions.Height];
     Utilities         = new MapUtilities(_mapConfiguration.MAP_SIZE, _mapConfiguration.FLOOR_TILE_SIZE);
     _requestValidator = new RequestValidator(this);
     _collisionChecker = new CollisionChecker(this);
     _mapMarker        = new MapMarker(this);
 }
Beispiel #2
0
 public GameConfiguration(CycleConfiguration cycleConfig, MapConfiguration mapConfig)
 {
     CycleConfig = cycleConfig;
     MapConfig   = mapConfig;
 }