private SneakingMap(IMap map, int width, int length, int _tileSize, IDrawableOwner dw) : base(width, length, _tileSize) { myWall = new wallObj(); initializeWall(); MyMap = map; //MyMap.setNoiseCreationBehavior(new NoiseCreationBehaviorView1(dw)); throw new Exception("Noise creation behavior in Sneaking map not set, Sneaking map constructor"); }
public static SneakingMap createInstance(IMap map, int width, int length, int _tileSize, IDrawableOwner dw) { if (myInstance == null) { myInstance = new SneakingMap(map, width, length, _tileSize, dw); } return(myInstance); }