Assign new images to the new pieces
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 29 Dec 2015 21:20:24 +0000 (22:20 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 29 Dec 2015 21:20:24 +0000 (22:20 +0100)
The 5 new pieces behind Lion, and their chu-promoted versions,
are assigned the 9 new images. The 10th piece gets the Lance image,
to povide a duplicate for this that will not be considered a Pawn
in any variant (so it can be used for Amazon).

common.h
draw.c

index 4f5b85b..92fb92d 100644 (file)
--- a/common.h
+++ b/common.h
@@ -294,23 +294,23 @@ typedef enum {
     WhiteFerz, WhiteAlfil, WhiteAngel, WhiteMarshall, WhiteWazir, WhiteMan,
     WhiteCannon, WhiteNightrider, WhiteCardinal, WhiteDragon, WhiteGrasshopper,
     WhiteSilver, WhiteFalcon, WhiteLance, WhiteCobra, WhiteUnicorn, WhiteLion,
-    WhiteWolf, WhiteOx, WhiteBoar, WhiteHelmet, WhiteViking,
+    WhiteWolf, WhiteCamel, WhiteZebra, WhiteWizard, WhiteAmazon,
     WhiteTokin, WhiteClaw, WhitePCardinal, WhitePDragon, WhiteCat,
     WhitePSword, WhiteMonarch, WhiteMother, WhiteNothing, WhitePRook, WhitePDagger,
     WhiteDolphin, WhiteStag, WhiteHorned, WhiteEagle, WhiteSword,
     WhiteCrown, WhiteHCrown, WhiteHorse, WhiteDrunk, WhitePBishop,
-    WhiteP1, WhiteP2, WhiteP3, WhiteP4, WhiteP5, 
+    WhiteFlying, WhiteViking, WhiteIron, WhiteCopper, WhiteTower, 
     WhiteKing,
     BlackPawn, BlackKnight, BlackBishop, BlackRook, BlackQueen,
     BlackFerz, BlackAlfil, BlackAngel, BlackMarshall, BlackWazir, BlackMan,
     BlackCannon, BlackNightrider, BlackCardinal, BlackDragon, BlackGrasshopper,
     BlackSilver, BlackFalcon, BlackLance, BlackCobra, BlackUnicorn, BlackLion,
-    BlackWolf, BlackOx, BlackBoar, BlackHelmet, BlackViking,
+    BlackWolf, BlackCamel, BlackZebra, BlackWizard, BlackAmazon,
     BlackTokin, BlackClaw, BlackPCardinal, BlackPDragon, BlackCat,
     BlackPSword, BlackMonarch, BlackMother, BlackNothing, BlackPRook, BlackPDagger,
     BlackDolphin, BlackStag, BlackHorned, BlackEagle, BlackSword,
     BlackCrown, BlackHCrown, BlackHorse, BlackDrunk, BlackPBishop,
-    BlackP1, BlackP2, BlackP3, BlackP4, BlackP5,
+    BlackFlying, BlackViking, BlackIron, BlackCopper, BlackTower,
     BlackKing,
     EmptySquare, DarkSquare,
     NoRights, // [HGM] gamestate: for castling rights hidden in board[CASTLING]
diff --git a/draw.c b/draw.c
index 849f33f..4e2556f 100644 (file)
--- a/draw.c
+++ b/draw.c
@@ -288,10 +288,10 @@ CreatePNGBoard (char *s, int kind)
 char *pngPieceNames[] = // must be in same order as internal piece encoding
 { "Pawn", "Knight", "Bishop", "Rook", "Queen", "Advisor", "Elephant", "Archbishop", "Marshall", "Gold", "Commoner",
   "Canon", "Nightrider", "CrownedBishop", "CrownedRook", "Crown", "Chancellor", "Hawk", "Lance", "Cobra", "Unicorn", "Lion",
-  "Tile", "Tile", "Tile", "Tile", "Tile",
+  "Wolf", "Camel", "Zebra", "Wizard", "Lance",
   "GoldPawn", "Claw", "PromoHorse", "PromoDragon", "GoldLance", "PromoSword", "Prince", "Phoenix", "Kylin", "PromoRook", "PromoHSword",
   "Dolphin", "Sword", "Leopard", "HSword", "GoldSilver", "Princess", "HCrown", "Knight", "Elephant", "PromoBishop",
-  "Tile", "Tile", "Tile", "Tile", "Tile", "King",
+  "Dragon", "Viking", "Iron", "Copper", "Tower", "King",
   "Claw", "GoldKnight", "GoldLance", "GoldSilver", NULL
 };