Examples of AddInfo()


Examples of mage.game.permanent.Permanent.addInfo()

        {
            if (game.getActivePlayerId().equals(source.getControllerId()) || game.getPlayer(source.getControllerId()).hasReachedNextTurnAfterLeaving()) {
                for(UUID targetId :this.getTargetPointer().getTargets(game, source)) {
                    Permanent permanent = game.getPermanent(targetId);
                    if (permanent != null) {
                        permanent.addInfo(new StringBuilder("detain").append(getId()).toString(),"");
                    }
                }
                return true;
            }
        }
View Full Code Here

Examples of mage.game.permanent.Permanent.addInfo()

                    return false;
                }
            }
            game.informPlayers(permanent.getName() + ": " + controller.getName() + " has chosen " + typeChoice.getChoice());
            game.getState().setValue(permanent.getId() + "_type", typeChoice.getChoice());
            permanent.addInfo("chosen type", CardUtil.addToolTipMarkTags("Chosen type: " + typeChoice.getChoice()));
        }
        return false;
    }

    @Override
View Full Code Here

Examples of mage.game.permanent.Permanent.addInfo()

                    return false;
                }
            }
            game.informPlayers(permanent.getName() + ": " + player.getName() + " has chosen " + typeChoice.getChoice());
            game.getState().setValue(permanent.getId() + "_type", typeChoice.getChoice());
            permanent.addInfo("chosen type", "<i>Chosen type: " + typeChoice.getChoice().toString() + "</i>");
        }
        return false;
    }

    @Override
View Full Code Here

Examples of mage.game.permanent.Permanent.addInfo()

                        return false;
                    }
                }
                game.informPlayers(permanent.getName() + ": " + player.getName() + " has chosen " + typeChoice.getChoice());
                game.getState().setValue(permanent.getId() + "_type", typeChoice.getChoice().toString());
                permanent.addInfo("chosen type", "<i>Chosen type: " + typeChoice.getChoice() + "</i>");
                permanent.getSubtype().add(typeChoice.getChoice());
            }
            return false;
        }
View Full Code Here

Examples of mage.game.permanent.Permanent.addInfo()

                    return false;
                }
            }
            game.informPlayers(permanent.getName() + ": " + player.getName() + " has chosen " + typeChoice.getChoice());
            game.getState().setValue(source.getSourceId() + "_XenograftType", typeChoice.getChoice());
            permanent.addInfo("chosen type", "<i>Chosen type: " + typeChoice.getChoice().toString() + "</i>");
        }
        return false;
    }

    @Override
View Full Code Here

Examples of mage.game.permanent.Permanent.addInfo()

                }
            }
            if (colorChoice.getChoice() != null) {
                game.informPlayers(permanent.getName() + ": " + player.getName() + " has chosen " + colorChoice.getChoice());
                game.getState().setValue(permanent.getId() + "_color", colorChoice.getColor());
                permanent.addInfo("chosen color", "<font color = 'blue'>Chosen color: " + colorChoice.getColor().getDescription() + "</font>");
            }
        }
        return false;
    }
View Full Code Here

Examples of mage.game.permanent.Permanent.addInfo()

                if (card != null) {
                    card.moveToExile(source.getSourceId(), "Elite Arcanist", source.getSourceId(), game);
                    Permanent permanent = game.getPermanent(source.getSourceId());
                    if (permanent != null) {
                        permanent.imprint(card.getId(), game);
                        permanent.addInfo("imprint", new StringBuilder("[Exiled card - ").append(card.getName()).append("]").toString());
                    }
                    return true;
                }
            }
        }
View Full Code Here

Examples of mage.game.permanent.Permanent.addInfo()

        Permanent permanent = game.getPermanent(targetPointer.getFirst(game, source));
        Permanent sourcePermananent = game.getPermanent(source.getSourceId());
        if (permanent != null) {
            if(sourcePermananent != null){
                sourcePermananent.imprint(permanent.getId(), game);
                sourcePermananent.addInfo("imprint", new StringBuilder("[Imprinted card - ").append(permanent.getName()).append("]").toString());
            }
            return permanent.moveToExile(null, null, source.getSourceId(), game);
        }
       
        return false;
View Full Code Here

Examples of mage.game.permanent.Permanent.addInfo()

                    return false;
                }
            }
            game.informPlayers(permanent.getName() + ": " + player.getName() + " has chosen " + typeChoice.getChoice());
            game.getState().setValue(permanent.getId() + "_type", typeChoice.getChoice());
            permanent.addInfo("chosen type", "<i>Chosen type: " + typeChoice.getChoice() + "</i>");
        }
        return false;
    }
}
View Full Code Here

Examples of mage.game.permanent.Permanent.addInfo()

        if (player != null && sourceStackObject != null && permanent != null) {
            ChoiceColor colorChoice = new ChoiceColor();
            if (player.choose(Outcome.BoostCreature, colorChoice, game)) {
                game.informPlayers(sourceStackObject.getName() + ": " + player.getName() + " has chosen " + colorChoice.getChoice());
                game.getState().setValue(permanent.getId() + "_color", colorChoice.getColor());
                permanent.addInfo("chosen color", new StringBuilder("<font color='blue'>Chosen color: ").append(colorChoice.getColor().getDescription()).append("</font>").toString());
            }
        }
        return false;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.