コード例 #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);
 }
コード例 #2
0
ファイル: Map.cs プロジェクト: pksorensen/CycleR
 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);
 }