- Conversion to StringBuilder. Still working on GameActionUtil.java.

This commit is contained in:
jendave
2011-08-06 09:51:40 +00:00
parent 00428806c5
commit 941b021f16

View File

@@ -2750,8 +2750,11 @@ public class GameActionUtil {
} }
}; // ability2 }; // ability2
ability2.setStackDescription(card.getName() + " - " + c.getController() StringBuilder sb = new StringBuilder();
+ " plays an Artifact spell and draws a card"); sb.append(card.getName()).append(" - ").append(c.getController());
sb.append(" plays an Artifact spell and draws a card");
ability2.setStackDescription(sb.toString());
AllZone.Stack.add(ability2); AllZone.Stack.add(ability2);
} // for } // for
@@ -2778,8 +2781,11 @@ public class GameActionUtil {
} }
}; // ability2 }; // ability2
ability2.setStackDescription(card.getName() + " - " + c.getController() StringBuilder sb = new StringBuilder();
+ " puts a 4/4 White Angel token with flying into play."); sb.append(card.getName()).append(" - ").append(c.getController());
sb.append(" puts a 4/4 White Angel token with flying into play.");
ability2.setStackDescription(sb.toString());
AllZone.Stack.add(ability2); AllZone.Stack.add(ability2);
} // for } // for
@@ -2806,7 +2812,10 @@ public class GameActionUtil {
} }
}; // ability2 }; // ability2
ability2.setStackDescription(card.getName() + " - " + " untaps"); StringBuilder sb = new StringBuilder();
sb.append(card.getName()).append(" - ").append(" untaps");
ability2.setStackDescription(sb.toString());
AllZone.Stack.add(ability2); AllZone.Stack.add(ability2);
} // for } // for
@@ -2833,8 +2842,11 @@ public class GameActionUtil {
} }
}; // ability2 }; // ability2
ability2.setStackDescription(card.getName() + " - " + c.getController() StringBuilder sb = new StringBuilder();
+ " plays a Creature spell and draws a card"); sb.append(card.getName()).append(" - ").append(c.getController());
sb.append(" plays a Creature spell and draws a card");
ability2.setStackDescription(sb.toString());
AllZone.Stack.add(ability2); AllZone.Stack.add(ability2);
} // for } // for
@@ -2862,8 +2874,12 @@ public class GameActionUtil {
} }
}; // ability2 }; // ability2
ability2.setStackDescription(card.getName() + " - " + c.getController() StringBuilder sb = new StringBuilder();
+ " played a white, blue, black or red spell, " + " gets a +1/+1 counter."); sb.append(card.getName()).append(" - ").append(c.getController());
sb.append(" played a white, blue, black or red spell, ");
sb.append(card.getName()).append(" gets a +1/+1 counter.");
ability2.setStackDescription(sb.toString());
AllZone.Stack.add(ability2); AllZone.Stack.add(ability2);
} }
} }
@@ -2892,8 +2908,12 @@ public class GameActionUtil {
} }
}; // ability2 }; // ability2
ability2.setStackDescription(card.getName() + " - " + c.getController() StringBuilder sb = new StringBuilder();
+ " played a blue or black spell, " + card.getName() + " gets a +1/+1 counter."); sb.append(card.getName()).append(" - ").append(c.getController());
sb.append(" played a blue or black spell, ").append(card.getName());
sb.append(" gets a +1/+1 counter.");
ability2.setStackDescription(sb.toString());
AllZone.Stack.add(ability2); AllZone.Stack.add(ability2);
} }