Example #1
0
 private static void DisplayTile(Tile tx)
 {
     if (TileUtil.AspLookup(tx.Hex1) == TileUtil.AspLookup(tx.Hex2))
     {
         Console.ForegroundColor = ConsoleColor.Cyan;
         Console.WriteLine("                               An Auspicious Aspect of " + TileUtil.AspLookup(tx.Hex1));
     }
     else
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine("        " + "Aspect: " + TileUtil.AspLookup(tx.Hex1) + " -- " + tx.Hex2.ToString("x") + ". ");
     }
     Console.ResetColor();
     Console.WriteLine("Tile's Hexen is " + tx.Hexen + "...");
 }
Example #2
0
 private static void GenTile(Tile tx)
 {
     tx.Hex1  = TileUtil.NewKey();                                                  // Aspect Data
     tx.Hex2  = TileUtil.NewKey();                                                  // String Data
     tx.Hexen = String.Concat(tx.Hex1.ToString("x") + "-" + tx.Hex2.ToString("x")); // Make the duo hexcode for the tile e.g. FFDC-10FC
 }