/// <summary> /// Returns a point at the center of the guard's tile, but raised 2 tile sizes in /// the z direction /// </summary> /// <param name="map"></param> /// <returns></returns> public IPoint getEyeLevel(SneakingMap map) { SneakingTile tile = (SneakingTile)map.getTile(MyPosition); return(new PointObj((int)tile.getCenter()[0], (int)tile.getCenter()[1], 2 * tile.TileSize)); }
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); }