示例#1
0
        public static UIData GenerateUIData()
        {
            UIData uiData = new UIData();

            uiData.ListTileColor = TileColorHelper.GetAllTileColors();
            uiData.ListTileImage = TileImageHelper.GetAllTileImages();

            return(uiData);
        }
示例#2
0
        public static HexMapData GenerateHexMapData(int columns, int rows)
        {
            List <HexData> listHexData = new List <HexData>();

            List <TileImageData> listTileImage = TileImageHelper.GetAllTileImages();

            int tileTypeCurrent = 0;

            for (int row = 0; row < rows; row++)
            {
                for (int col = 0; col < columns; col++)
                {
                    TileData tileData = new TileData(new TileColorData(Color.LightGreen),
                                                     listTileImage[tileTypeCurrent++ % listTileImage.Count]);
                    HexData hexDataTmp = new HexData(col, row, "Description de l'hex " + col + "-" + row, tileTypeCurrent++ % 7, tileData);
                    listHexData.Add(hexDataTmp);
                }
            }
            return(new HexMapData(columns, rows, listHexData));
        }
示例#3
0
 public static BitmapImage GetBitmapImageFromName(string name)
 {
     return(HexMapDrawingHelper.Convert(TileImageHelper.GetBitmapTile(name)));
 }
示例#4
0
 public static Bitmap GetBitmapFromName(string name)
 {
     return(TileImageHelper.GetBitmapTile(name));
 }