arrows can target players now
This commit is contained in:
parent
cbf201ed9b
commit
61b82bd6f9
25 changed files with 802 additions and 489 deletions
|
@ -16,6 +16,7 @@ HEADERS += src/counter.h \
|
|||
src/window_main.h \
|
||||
src/cardzone.h \
|
||||
src/player.h \
|
||||
src/playertarget.h \
|
||||
src/cardlist.h \
|
||||
src/abstractcarditem.h \
|
||||
src/carditem.h \
|
||||
|
@ -45,6 +46,7 @@ HEADERS += src/counter.h \
|
|||
src/phasestoolbar.h \
|
||||
src/gamescene.h \
|
||||
src/arrowitem.h \
|
||||
src/arrowtarget.h \
|
||||
src/tab.h \
|
||||
src/tab_server.h \
|
||||
src/tab_chatchannel.h \
|
||||
|
@ -71,6 +73,7 @@ SOURCES += src/counter.cpp \
|
|||
src/window_main.cpp \
|
||||
src/gamesmodel.cpp \
|
||||
src/player.cpp \
|
||||
src/playertarget.cpp \
|
||||
src/cardzone.cpp \
|
||||
src/cardlist.cpp \
|
||||
src/abstractcarditem.cpp \
|
||||
|
@ -101,6 +104,7 @@ SOURCES += src/counter.cpp \
|
|||
src/phasestoolbar.cpp \
|
||||
src/gamescene.cpp \
|
||||
src/arrowitem.cpp \
|
||||
src/arrowtarget.cpp \
|
||||
src/tab_server.cpp \
|
||||
src/tab_chatchannel.cpp \
|
||||
src/tab_game.cpp \
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <QDebug>
|
||||
|
||||
AbstractCardItem::AbstractCardItem(const QString &_name, QGraphicsItem *parent)
|
||||
: AbstractGraphicsItem(parent), info(db->getCard(_name)), name(_name), tapped(false)
|
||||
: ArrowTarget(parent), info(db->getCard(_name)), name(_name), tapped(false)
|
||||
{
|
||||
setCursor(Qt::OpenHandCursor);
|
||||
setFlag(ItemIsSelectable);
|
||||
|
@ -51,7 +51,7 @@ void AbstractCardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *
|
|||
}
|
||||
painter->drawPixmap(translatedPixmap->rect(), *translatedPixmap, translatedPixmap->rect());
|
||||
} else {
|
||||
QFont f("Serif");
|
||||
QFont f("Times");
|
||||
f.setStyleHint(QFont::Serif);
|
||||
f.setPixelSize(12);
|
||||
painter->setFont(f);
|
||||
|
|
|
@ -1,21 +1,14 @@
|
|||
#ifndef ABSTRACTCARDITEM_H
|
||||
#define ABSTRACTCARDITEM_H
|
||||
|
||||
#include "abstractgraphicsitem.h"
|
||||
#include "arrowtarget.h"
|
||||
|
||||
class CardInfo;
|
||||
|
||||
const int CARD_WIDTH = 72;
|
||||
const int CARD_HEIGHT = 102;
|
||||
|
||||
enum CardItemType {
|
||||
typeCard = QGraphicsItem::UserType + 1,
|
||||
typeCardDrag = QGraphicsItem::UserType + 2,
|
||||
typeZone = QGraphicsItem::UserType + 3,
|
||||
typeOther = QGraphicsItem::UserType + 5
|
||||
};
|
||||
|
||||
class AbstractCardItem : public QObject, public AbstractGraphicsItem {
|
||||
class AbstractCardItem : public QObject, public ArrowTarget {
|
||||
Q_OBJECT
|
||||
protected:
|
||||
CardInfo *info;
|
||||
|
|
|
@ -3,6 +3,14 @@
|
|||
|
||||
#include <QGraphicsItem>
|
||||
|
||||
enum GraphicsItemType {
|
||||
typeCard = QGraphicsItem::UserType + 1,
|
||||
typeCardDrag = QGraphicsItem::UserType + 2,
|
||||
typeZone = QGraphicsItem::UserType + 3,
|
||||
typePlayerTarget = QGraphicsItem::UserType + 4,
|
||||
typeOther = QGraphicsItem::UserType + 5
|
||||
};
|
||||
|
||||
class AbstractGraphicsItem : public QGraphicsItem {
|
||||
protected:
|
||||
void paintNumberEllipse(int number, int radius, const QColor &color, int position, int count, QPainter *painter);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "arrowitem.h"
|
||||
#include "playertarget.h"
|
||||
#include "carditem.h"
|
||||
#include "cardzone.h"
|
||||
#include "player.h"
|
||||
|
@ -8,7 +9,7 @@
|
|||
#include <QGraphicsSceneMouseEvent>
|
||||
#include <QGraphicsScene>
|
||||
|
||||
ArrowItem::ArrowItem(Player *_player, int _id, CardItem *_startItem, CardItem *_targetItem, const QColor &_color)
|
||||
ArrowItem::ArrowItem(Player *_player, int _id, ArrowTarget *_startItem, ArrowTarget *_targetItem, const QColor &_color)
|
||||
: QGraphicsItem(), player(_player), id(_id), startItem(_startItem), targetItem(_targetItem), color(_color), fullColor(true)
|
||||
{
|
||||
setZValue(2000000005);
|
||||
|
@ -96,7 +97,7 @@ void ArrowItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
|||
player->sendGameCommand(new Command_DeleteArrow(-1, id));
|
||||
}
|
||||
|
||||
ArrowDragItem::ArrowDragItem(CardItem *_startItem, const QColor &_color)
|
||||
ArrowDragItem::ArrowDragItem(ArrowTarget *_startItem, const QColor &_color)
|
||||
: ArrowItem(static_cast<CardZone *>(_startItem->parentItem())->getPlayer(), -1, _startItem, 0, _color)
|
||||
{
|
||||
}
|
||||
|
@ -111,10 +112,12 @@ void ArrowDragItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
|||
QPointF endPos = event->scenePos();
|
||||
|
||||
QList<QGraphicsItem *> colliding = scene()->items(endPos);
|
||||
CardItem *cursorItem = 0;
|
||||
ArrowTarget *cursorItem = 0;
|
||||
for (int i = colliding.size() - 1; i >= 0; i--)
|
||||
if ((cursorItem = qgraphicsitem_cast<CardItem *>(colliding.at(i))))
|
||||
if (qgraphicsitem_cast<PlayerTarget *>(colliding.at(i)) || qgraphicsitem_cast<CardItem *>(colliding.at(i))) {
|
||||
cursorItem = static_cast<ArrowTarget *>(colliding.at(i));
|
||||
break;
|
||||
}
|
||||
if ((cursorItem != targetItem) && targetItem)
|
||||
targetItem->setBeingPointedAt(false);
|
||||
if (!cursorItem) {
|
||||
|
@ -139,17 +142,35 @@ void ArrowDragItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
|||
if (targetItem && (targetItem != startItem)) {
|
||||
targetItem->setBeingPointedAt(false);
|
||||
CardZone *startZone = static_cast<CardZone *>(startItem->parentItem());
|
||||
// For now, we can safely assume that the start item is always a card.
|
||||
// The target item can be a player as well.
|
||||
CardItem *startCard = qgraphicsitem_cast<CardItem *>(startItem);
|
||||
CardItem *targetCard = qgraphicsitem_cast<CardItem *>(targetItem);
|
||||
if (targetCard) {
|
||||
CardZone *targetZone = static_cast<CardZone *>(targetItem->parentItem());
|
||||
player->sendGameCommand(new Command_CreateArrow(
|
||||
-1,
|
||||
startZone->getPlayer()->getId(),
|
||||
startZone->getName(),
|
||||
startItem->getId(),
|
||||
startCard->getId(),
|
||||
targetZone->getPlayer()->getId(),
|
||||
targetZone->getName(),
|
||||
targetItem->getId(),
|
||||
targetCard->getId(),
|
||||
color
|
||||
));
|
||||
} else {
|
||||
PlayerTarget *targetPlayer = qgraphicsitem_cast<PlayerTarget *>(targetItem);
|
||||
player->sendGameCommand(new Command_CreateArrow(
|
||||
-1,
|
||||
startZone->getPlayer()->getId(),
|
||||
startZone->getName(),
|
||||
startCard->getId(),
|
||||
static_cast<Player *>(targetPlayer->parentItem())->getId(),
|
||||
QString(),
|
||||
-1,
|
||||
color
|
||||
));
|
||||
}
|
||||
}
|
||||
deleteLater();
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ class CardItem;
|
|||
class QGraphicsSceneMouseEvent;
|
||||
class QMenu;
|
||||
class Player;
|
||||
class ArrowTarget;
|
||||
|
||||
class ArrowItem : public QObject, public QGraphicsItem {
|
||||
Q_OBJECT
|
||||
|
@ -16,12 +17,12 @@ private:
|
|||
protected:
|
||||
Player *player;
|
||||
int id;
|
||||
CardItem *startItem, *targetItem;
|
||||
ArrowTarget *startItem, *targetItem;
|
||||
QColor color;
|
||||
bool fullColor;
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent *event);
|
||||
public:
|
||||
ArrowItem(Player *_player, int _id, CardItem *_startItem, CardItem *_targetItem, const QColor &color);
|
||||
ArrowItem(Player *_player, int _id, ArrowTarget *_startItem, ArrowTarget *_targetItem, const QColor &color);
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
QRectF boundingRect() const { return path.boundingRect(); }
|
||||
QPainterPath shape() const { return path; }
|
||||
|
@ -29,10 +30,10 @@ public:
|
|||
void updatePath(const QPointF &endPoint);
|
||||
|
||||
int getId() const { return id; }
|
||||
void setStartItem(CardItem *_item) { startItem = _item; }
|
||||
void setTargetItem(CardItem *_item) { targetItem = _item; }
|
||||
CardItem *getStartItem() const { return startItem; }
|
||||
CardItem *getTargetItem() const { return targetItem; }
|
||||
void setStartItem(ArrowTarget *_item) { startItem = _item; }
|
||||
void setTargetItem(ArrowTarget *_item) { targetItem = _item; }
|
||||
ArrowTarget *getStartItem() const { return startItem; }
|
||||
ArrowTarget *getTargetItem() const { return targetItem; }
|
||||
};
|
||||
|
||||
class ArrowDragItem : public ArrowItem {
|
||||
|
@ -40,7 +41,7 @@ class ArrowDragItem : public ArrowItem {
|
|||
private:
|
||||
QList<ArrowDragItem *> childArrows;
|
||||
public:
|
||||
ArrowDragItem(CardItem *_startItem, const QColor &_color);
|
||||
ArrowDragItem(ArrowTarget *_startItem, const QColor &_color);
|
||||
void addChildArrow(ArrowDragItem *childArrow);
|
||||
protected:
|
||||
void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
|
||||
|
|
12
cockatrice/src/arrowtarget.cpp
Normal file
12
cockatrice/src/arrowtarget.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include "arrowtarget.h"
|
||||
|
||||
ArrowTarget::ArrowTarget(QGraphicsItem *parent)
|
||||
: AbstractGraphicsItem(parent), beingPointedAt(false)
|
||||
{
|
||||
}
|
||||
|
||||
void ArrowTarget::setBeingPointedAt(bool _beingPointedAt)
|
||||
{
|
||||
beingPointedAt = _beingPointedAt;
|
||||
update();
|
||||
}
|
15
cockatrice/src/arrowtarget.h
Normal file
15
cockatrice/src/arrowtarget.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef ARROWTARGET_H
|
||||
#define ARROWTARGET_H
|
||||
|
||||
#include "abstractgraphicsitem.h"
|
||||
|
||||
class ArrowTarget : public AbstractGraphicsItem {
|
||||
private:
|
||||
bool beingPointedAt;
|
||||
public:
|
||||
ArrowTarget(QGraphicsItem *parent = 0);
|
||||
void setBeingPointedAt(bool _beingPointedAt);
|
||||
bool getBeingPointedAt() const { return beingPointedAt; }
|
||||
};
|
||||
|
||||
#endif
|
|
@ -12,7 +12,7 @@
|
|||
#include "settingscache.h"
|
||||
|
||||
CardItem::CardItem(Player *_owner, const QString &_name, int _cardid, QGraphicsItem *parent)
|
||||
: AbstractCardItem(_name, parent), owner(_owner), id(_cardid), attacking(false), facedown(false), destroyOnZoneChange(false), doesntUntap(false), beingPointedAt(false), dragItem(NULL)
|
||||
: AbstractCardItem(_name, parent), owner(_owner), id(_cardid), attacking(false), facedown(false), destroyOnZoneChange(false), doesntUntap(false), dragItem(NULL)
|
||||
{
|
||||
owner->addCard(this);
|
||||
|
||||
|
@ -117,8 +117,8 @@ void CardItem::retranslateUi()
|
|||
aDoesntUntap->setText(tr("Toggle &normal untapping"));
|
||||
aFlip->setText(tr("&Flip"));
|
||||
aClone->setText(tr("&Clone"));
|
||||
aAttach->setText(tr("Attach to card..."));
|
||||
aUnattach->setText(tr("Unattach"));
|
||||
aAttach->setText(tr("&Attach to card..."));
|
||||
aUnattach->setText(tr("Unattac&h"));
|
||||
aSetPT->setText(tr("Set &P/T..."));
|
||||
aSetAnnotation->setText(tr("&Set annotation..."));
|
||||
QStringList counterColors;
|
||||
|
@ -157,7 +157,7 @@ void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
|||
++i;
|
||||
}
|
||||
if (!pt.isEmpty()) {
|
||||
QFont font("Serif");
|
||||
QFont font("Times");
|
||||
font.setPixelSize(16);
|
||||
painter->setFont(font);
|
||||
QPen pen(Qt::white);
|
||||
|
@ -168,7 +168,7 @@ void CardItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
|||
|
||||
painter->drawText(QRectF(0, 0, boundingRect().width() - 5, boundingRect().height() - 5), Qt::AlignRight | Qt::AlignBottom, pt);
|
||||
}
|
||||
if (beingPointedAt)
|
||||
if (getBeingPointedAt())
|
||||
painter->fillRect(boundingRect(), QBrush(QColor(255, 0, 0, 100)));
|
||||
painter->restore();
|
||||
}
|
||||
|
@ -214,12 +214,6 @@ void CardItem::setPT(const QString &_pt)
|
|||
update();
|
||||
}
|
||||
|
||||
void CardItem::setBeingPointedAt(bool _beingPointedAt)
|
||||
{
|
||||
beingPointedAt = _beingPointedAt;
|
||||
update();
|
||||
}
|
||||
|
||||
void CardItem::resetState()
|
||||
{
|
||||
attacking = false;
|
||||
|
@ -286,7 +280,7 @@ void CardItem::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
|||
QListIterator<QGraphicsItem *> itemIterator(scene()->selectedItems());
|
||||
while (itemIterator.hasNext()) {
|
||||
CardItem *c = qgraphicsitem_cast<CardItem *>(itemIterator.next());
|
||||
if (!c)
|
||||
if (!c || (c == this))
|
||||
continue;
|
||||
if (c->parentItem() != parentItem())
|
||||
continue;
|
||||
|
|
|
@ -25,7 +25,6 @@ private:
|
|||
bool destroyOnZoneChange;
|
||||
bool doesntUntap;
|
||||
QPoint gridPoint;
|
||||
bool beingPointedAt;
|
||||
CardDragItem *dragItem;
|
||||
|
||||
QList<QAction *> aAddCounter, aSetCounter, aRemoveCounter;
|
||||
|
@ -62,7 +61,6 @@ public:
|
|||
void setPT(const QString &_pt);
|
||||
bool getDestroyOnZoneChange() const { return destroyOnZoneChange; }
|
||||
void setDestroyOnZoneChange(bool _destroy) { destroyOnZoneChange = _destroy; }
|
||||
void setBeingPointedAt(bool _beingPointedAt);
|
||||
void resetState();
|
||||
void processCardInfo(ServerInfo_Card *info);
|
||||
|
||||
|
|
|
@ -212,8 +212,16 @@ void MessageLogWidget::logCreateToken(Player *player, QString cardName, QString
|
|||
append(tr("%1 creates token: %2%3.").arg(sanitizeHtml(player->getName())).arg(QString("<font color=\"blue\">%1</font>").arg(sanitizeHtml(cardName))).arg(pt.isEmpty() ? QString() : QString(" (%1)").arg(sanitizeHtml(pt))));
|
||||
}
|
||||
|
||||
void MessageLogWidget::logCreateArrow(Player *player, Player *startPlayer, QString startCard, Player *targetPlayer, QString targetCard)
|
||||
void MessageLogWidget::logCreateArrow(Player *player, Player *startPlayer, QString startCard, Player *targetPlayer, QString targetCard, bool playerTarget)
|
||||
{
|
||||
if (playerTarget)
|
||||
append(tr("%1 points from %2's %3 to %4.")
|
||||
.arg(sanitizeHtml(player->getName()))
|
||||
.arg(sanitizeHtml(startPlayer->getName()))
|
||||
.arg(sanitizeHtml(startCard))
|
||||
.arg(sanitizeHtml(targetPlayer->getName()))
|
||||
);
|
||||
else
|
||||
append(tr("%1 points from %2's %3 to %4's %5.")
|
||||
.arg(sanitizeHtml(player->getName()))
|
||||
.arg(sanitizeHtml(startPlayer->getName()))
|
||||
|
@ -323,7 +331,7 @@ void MessageLogWidget::connectToPlayer(Player *player)
|
|||
connect(player, SIGNAL(logSay(Player *, QString)), this, SLOT(logSay(Player *, QString)));
|
||||
connect(player, SIGNAL(logShuffle(Player *)), this, SLOT(logShuffle(Player *)));
|
||||
connect(player, SIGNAL(logRollDie(Player *, int, int)), this, SLOT(logRollDie(Player *, int, int)));
|
||||
connect(player, SIGNAL(logCreateArrow(Player *, Player *, QString, Player *, QString)), this, SLOT(logCreateArrow(Player *, Player *, QString, Player *, QString)));
|
||||
connect(player, SIGNAL(logCreateArrow(Player *, Player *, QString, Player *, QString, bool)), this, SLOT(logCreateArrow(Player *, Player *, QString, Player *, QString, bool)));
|
||||
connect(player, SIGNAL(logCreateToken(Player *, QString, QString)), this, SLOT(logCreateToken(Player *, QString, QString)));
|
||||
connect(player, SIGNAL(logSetCounter(Player *, QString, int, int)), this, SLOT(logSetCounter(Player *, QString, int, int)));
|
||||
connect(player, SIGNAL(logSetCardCounter(Player *, QString, int, int, int)), this, SLOT(logSetCardCounter(Player *, QString, int, int, int)));
|
||||
|
|
|
@ -41,7 +41,7 @@ public slots:
|
|||
void logMoveCard(Player *player, QString cardName, CardZone *startZone, int oldX, CardZone *targetZone, int newX);
|
||||
void logDestroyCard(Player *player, QString cardName);
|
||||
void logCreateToken(Player *player, QString cardName, QString pt);
|
||||
void logCreateArrow(Player *player, Player *startPlayer, QString startCard, Player *targetPlayer, QString targetCard);
|
||||
void logCreateArrow(Player *player, Player *startPlayer, QString startCard, Player *targetPlayer, QString targetCard, bool playerTarget);
|
||||
void logSetCardCounter(Player *player, QString cardName, int counterId, int value, int oldValue);
|
||||
void logSetTapped(Player *player, QString cardName, bool tapped);
|
||||
void logSetCounter(Player *player, QString counterName, int value, int oldValue);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#include "player.h"
|
||||
#include "client.h"
|
||||
#include "cardzone.h"
|
||||
#include "playertarget.h"
|
||||
#include "counter.h"
|
||||
#include "arrowitem.h"
|
||||
#include "zoneviewzone.h"
|
||||
|
@ -28,6 +29,9 @@ Player::Player(const QString &_name, int _id, bool _local, Client *_client, TabG
|
|||
connect(settingsCache, SIGNAL(playerBgPathChanged()), this, SLOT(updateBgPixmap()));
|
||||
updateBgPixmap();
|
||||
|
||||
playerTarget = new PlayerTarget(name, CARD_WIDTH + counterAreaWidth + 5, this);
|
||||
playerTarget->setPos(QPointF(0, 0));
|
||||
|
||||
QPointF base = QPointF(counterAreaWidth, 50);
|
||||
|
||||
PileZone *deck = new PileZone(this, "deck", true, false, this);
|
||||
|
@ -207,6 +211,7 @@ Player::Player(const QString &_name, int _id, bool _local, Client *_client, TabG
|
|||
countersMenu = 0;
|
||||
sbMenu = 0;
|
||||
aCreateAnotherToken = 0;
|
||||
aCardMenu = 0;
|
||||
}
|
||||
|
||||
rearrangeZones();
|
||||
|
@ -490,7 +495,13 @@ void Player::eventCreateArrows(Event_CreateArrows *event)
|
|||
ArrowItem *arrow = addArrow(eventArrowList[i]);
|
||||
if (!arrow)
|
||||
return;
|
||||
emit logCreateArrow(this, arrow->getStartItem()->getOwner(), arrow->getStartItem()->getName(), arrow->getTargetItem()->getOwner(), arrow->getTargetItem()->getName());
|
||||
|
||||
CardItem *startCard = static_cast<CardItem *>(arrow->getStartItem());
|
||||
CardItem *targetCard = qgraphicsitem_cast<CardItem *>(arrow->getTargetItem());
|
||||
if (targetCard)
|
||||
emit logCreateArrow(this, startCard->getOwner(), startCard->getName(), targetCard->getOwner(), targetCard->getName(), false);
|
||||
else
|
||||
emit logCreateArrow(this, startCard->getOwner(), startCard->getName(), static_cast<Player *>(arrow->getTargetItem()->parentItem()), QString(), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -722,20 +733,11 @@ QRectF Player::boundingRect() const
|
|||
|
||||
void Player::paint(QPainter *painter, const QStyleOptionGraphicsItem */*option*/, QWidget */*widget*/)
|
||||
{
|
||||
QString nameStr = getName();
|
||||
QFont font("Times");
|
||||
font.setPixelSize(20);
|
||||
// font.setWeight(QFont::Bold);
|
||||
|
||||
int totalWidth = CARD_WIDTH + counterAreaWidth + 5;
|
||||
if (bgPixmap.isNull())
|
||||
painter->fillRect(QRectF(0, 0, totalWidth, boundingRect().height()), QColor(200, 200, 200));
|
||||
else
|
||||
painter->fillRect(QRectF(0, 0, totalWidth, boundingRect().height()), QBrush(bgPixmap));
|
||||
|
||||
painter->setFont(font);
|
||||
painter->setPen(QPen(Qt::black));
|
||||
painter->drawText(QRectF(0, 0, totalWidth, 40), Qt::AlignCenter, nameStr);
|
||||
}
|
||||
|
||||
void Player::processPlayerInfo(ServerInfo_Player *info)
|
||||
|
@ -827,20 +829,25 @@ ArrowItem *Player::addArrow(ServerInfo_Arrow *arrow)
|
|||
|
||||
CardZone *startZone = startPlayer->getZones().value(arrow->getStartZone(), 0);
|
||||
CardZone *targetZone = targetPlayer->getZones().value(arrow->getTargetZone(), 0);
|
||||
if (!startZone || !targetZone)
|
||||
if (!startZone || (!targetZone && !arrow->getTargetZone().isEmpty()))
|
||||
return 0;
|
||||
|
||||
CardItem *startCard = startZone->getCard(arrow->getStartCardId(), QString());
|
||||
CardItem *targetCard = targetZone->getCard(arrow->getTargetCardId(), QString());
|
||||
if (!startCard || !targetCard)
|
||||
CardItem *targetCard = 0;
|
||||
if (targetZone)
|
||||
targetCard = targetZone->getCard(arrow->getTargetCardId(), QString());
|
||||
if (!startCard || (!targetCard && !arrow->getTargetZone().isEmpty()))
|
||||
return 0;
|
||||
|
||||
if (targetCard)
|
||||
return addArrow(arrow->getId(), startCard, targetCard, arrow->getColor());
|
||||
else
|
||||
return addArrow(arrow->getId(), startCard, targetPlayer->getPlayerTarget(), arrow->getColor());
|
||||
}
|
||||
|
||||
ArrowItem *Player::addArrow(int arrowId, CardItem *startCard, CardItem *targetCard, const QColor &color)
|
||||
ArrowItem *Player::addArrow(int arrowId, CardItem *startCard, ArrowTarget *targetItem, const QColor &color)
|
||||
{
|
||||
ArrowItem *arrow = new ArrowItem(this, arrowId, startCard, targetCard, color);
|
||||
ArrowItem *arrow = new ArrowItem(this, arrowId, startCard, targetItem, color);
|
||||
arrows.insert(arrowId, arrow);
|
||||
scene()->addItem(arrow);
|
||||
return arrow;
|
||||
|
@ -909,6 +916,7 @@ void Player::cardMenuAction()
|
|||
{
|
||||
QAction *a = static_cast<QAction *>(sender());
|
||||
QList<QGraphicsItem *> sel = scene()->selectedItems();
|
||||
QList<Command *> commandList;
|
||||
while (!sel.isEmpty()) {
|
||||
unsigned int i = (unsigned int) (((double) sel.size()) * qrand() / (RAND_MAX + 1.0));
|
||||
CardItem *card = qgraphicsitem_cast<CardItem *>(sel.takeAt(i));
|
||||
|
@ -916,38 +924,39 @@ void Player::cardMenuAction()
|
|||
switch (a->data().toInt()) {
|
||||
case 0:
|
||||
if (!card->getTapped())
|
||||
sendGameCommand(new Command_SetCardAttr(-1, qgraphicsitem_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "tapped", "1"));
|
||||
commandList.append(new Command_SetCardAttr(-1, qgraphicsitem_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "tapped", "1"));
|
||||
break;
|
||||
case 1:
|
||||
if (card->getTapped())
|
||||
sendGameCommand(new Command_SetCardAttr(-1, qgraphicsitem_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "tapped", "0"));
|
||||
commandList.append(new Command_SetCardAttr(-1, qgraphicsitem_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "tapped", "0"));
|
||||
break;
|
||||
case 2:
|
||||
sendGameCommand(new Command_SetCardAttr(-1, qgraphicsitem_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "doesnt_untap", QString::number(!card->getDoesntUntap())));
|
||||
commandList.append(new Command_SetCardAttr(-1, qgraphicsitem_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "doesnt_untap", QString::number(!card->getDoesntUntap())));
|
||||
break;
|
||||
case 3: {
|
||||
QString zone = qgraphicsitem_cast<CardZone *>(card->parentItem())->getName();
|
||||
sendGameCommand(new Command_MoveCard(-1, zone, card->getId(), zone, card->getGridPoint().x(), card->getGridPoint().y(), !card->getFaceDown()));
|
||||
commandList.append(new Command_MoveCard(-1, zone, card->getId(), zone, card->getGridPoint().x(), card->getGridPoint().y(), !card->getFaceDown()));
|
||||
break;
|
||||
}
|
||||
case 4:
|
||||
sendGameCommand(new Command_CreateToken(-1, static_cast<CardZone *>(card->parentItem())->getName(), card->getName(), card->getColor(), card->getPT(), card->getAnnotation(), card->getDestroyOnZoneChange(), -1, card->getGridPoint().y()));
|
||||
commandList.append(new Command_CreateToken(-1, static_cast<CardZone *>(card->parentItem())->getName(), card->getName(), card->getColor(), card->getPT(), card->getAnnotation(), card->getDestroyOnZoneChange(), -1, card->getGridPoint().y()));
|
||||
break;
|
||||
case 5:
|
||||
sendGameCommand(new Command_MoveCard(-1, static_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "deck", 0, 0, false));
|
||||
commandList.append(new Command_MoveCard(-1, static_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "deck", 0, 0, false));
|
||||
break;
|
||||
case 6:
|
||||
sendGameCommand(new Command_MoveCard(-1, static_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "deck", -1, 0, false));
|
||||
commandList.append(new Command_MoveCard(-1, static_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "deck", -1, 0, false));
|
||||
break;
|
||||
case 7:
|
||||
sendGameCommand(new Command_MoveCard(-1, static_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "grave", 0, 0, false));
|
||||
commandList.append(new Command_MoveCard(-1, static_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "grave", 0, 0, false));
|
||||
break;
|
||||
case 8:
|
||||
sendGameCommand(new Command_MoveCard(-1, static_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "rfg", 0, 0, false));
|
||||
commandList.append(new Command_MoveCard(-1, static_cast<CardZone *>(card->parentItem())->getName(), card->getId(), "rfg", 0, 0, false));
|
||||
break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
sendCommandContainer(new CommandContainer(commandList));
|
||||
}
|
||||
|
||||
void Player::actSetPT()
|
||||
|
@ -1045,12 +1054,15 @@ void Player::actCardCounterTrigger()
|
|||
|
||||
void Player::setCardMenu(QMenu *menu)
|
||||
{
|
||||
if (aCardMenu)
|
||||
aCardMenu->setMenu(menu);
|
||||
}
|
||||
|
||||
QMenu *Player::getCardMenu() const
|
||||
{
|
||||
if (aCardMenu)
|
||||
return aCardMenu->menu();
|
||||
return 0;
|
||||
}
|
||||
|
||||
qreal Player::getMinimumWidth() const
|
||||
|
|
|
@ -17,6 +17,7 @@ class ArrowItem;
|
|||
class CardZone;
|
||||
class TableZone;
|
||||
class HandZone;
|
||||
class PlayerTarget;
|
||||
class ServerInfo_Player;
|
||||
class ServerInfo_Arrow;
|
||||
class ServerInfo_Counter;
|
||||
|
@ -49,7 +50,7 @@ signals:
|
|||
void logSay(Player *player, QString message);
|
||||
void logShuffle(Player *player);
|
||||
void logRollDie(Player *player, int sides, int roll);
|
||||
void logCreateArrow(Player *player, Player *startPlayer, QString startCard, Player *targetPlayer, QString targetCard);
|
||||
void logCreateArrow(Player *player, Player *startPlayer, QString startCard, Player *targetPlayer, QString targetCard, bool _playerTarget);
|
||||
void logCreateToken(Player *player, QString cardName, QString pt);
|
||||
void logDrawCards(Player *player, int number);
|
||||
void logMoveCard(Player *player, QString cardName, CardZone *startZone, int oldX, CardZone *targetZone, int newX);
|
||||
|
@ -90,7 +91,6 @@ public slots:
|
|||
void actCardCounterTrigger();
|
||||
|
||||
private slots:
|
||||
|
||||
void updateBgPixmap();
|
||||
void updateBoundingRect();
|
||||
void rearrangeZones();
|
||||
|
@ -104,9 +104,6 @@ private:
|
|||
*aUntapAll, *aRollDie, *aCreateToken, *aCreateAnotherToken,
|
||||
*aCardMenu;
|
||||
|
||||
typedef void (Player::*CardMenuHandler)(CardItem *card);
|
||||
QHash<QAction *, CardMenuHandler> cardMenuHandlers;
|
||||
|
||||
int defaultNumberTopCards;
|
||||
QString lastTokenName, lastTokenColor, lastTokenPT, lastTokenAnnotation;
|
||||
bool lastTokenDestroy;
|
||||
|
@ -119,6 +116,7 @@ private:
|
|||
QMap<QString, CardZone *> zones;
|
||||
TableZone *table;
|
||||
HandZone *hand;
|
||||
PlayerTarget *playerTarget;
|
||||
|
||||
void setCardAttrHelper(CardItem *card, const QString &aname, const QString &avalue, bool allCards);
|
||||
|
||||
|
@ -164,9 +162,10 @@ public:
|
|||
void clearCounters();
|
||||
|
||||
ArrowItem *addArrow(ServerInfo_Arrow *arrow);
|
||||
ArrowItem *addArrow(int arrowId, CardItem *startCard, CardItem *targetCard, const QColor &color);
|
||||
ArrowItem *addArrow(int arrowId, CardItem *startCard, ArrowTarget *targetItem, const QColor &color);
|
||||
void delArrow(int arrowId);
|
||||
void clearArrows();
|
||||
PlayerTarget *getPlayerTarget() const { return playerTarget; }
|
||||
|
||||
Client *client;
|
||||
Player(const QString &_name, int _id, bool _local, Client *_client, TabGame *_parent);
|
||||
|
|
23
cockatrice/src/playertarget.cpp
Normal file
23
cockatrice/src/playertarget.cpp
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include "playertarget.h"
|
||||
#include <QPainter>
|
||||
|
||||
PlayerTarget::PlayerTarget(const QString &_name, int _maxWidth, QGraphicsItem *parent)
|
||||
: ArrowTarget(parent), name(_name), maxWidth(_maxWidth)
|
||||
{
|
||||
font = QFont("Times");
|
||||
font.setStyleHint(QFont::Serif);
|
||||
font.setPixelSize(20);
|
||||
}
|
||||
|
||||
QRectF PlayerTarget::boundingRect() const
|
||||
{
|
||||
return QRectF(0, 0, maxWidth, 30);
|
||||
}
|
||||
|
||||
void PlayerTarget::paint(QPainter *painter, const QStyleOptionGraphicsItem * /*option*/, QWidget * /*widget*/)
|
||||
{
|
||||
painter->fillRect(boundingRect(), QColor(255, 255, 255, 100));
|
||||
painter->setFont(font);
|
||||
painter->setPen(Qt::black);
|
||||
painter->drawText(boundingRect(), Qt::AlignCenter, name);
|
||||
}
|
21
cockatrice/src/playertarget.h
Normal file
21
cockatrice/src/playertarget.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef PLAYERTARGET_H
|
||||
#define PLAYERTARGET_H
|
||||
|
||||
#include "arrowtarget.h"
|
||||
#include <QFont>
|
||||
|
||||
class PlayerTarget : public ArrowTarget {
|
||||
private:
|
||||
QString name;
|
||||
QFont font;
|
||||
int maxWidth;
|
||||
public:
|
||||
enum { Type = typePlayerTarget };
|
||||
int type() const { return Type; }
|
||||
|
||||
PlayerTarget(const QString &_name, int _maxWidth, QGraphicsItem *parent = 0);
|
||||
QRectF boundingRect() const;
|
||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||
};
|
||||
|
||||
#endif
|
|
@ -152,115 +152,223 @@
|
|||
<translation type="obsolete">Das Kartenhintergrundbild konnte nicht geladen werden.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>CardItem</name>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="115"/>
|
||||
<source>&Tap</source>
|
||||
<translation>&Tappen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="116"/>
|
||||
<source>&Untap</source>
|
||||
<translation>E&nttappen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="117"/>
|
||||
<source>Toggle &normal untapping</source>
|
||||
<translation>N&ormales Enttappen umschalten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="118"/>
|
||||
<source>&Flip</source>
|
||||
<translation>&Umdrehen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="119"/>
|
||||
<source>&Clone</source>
|
||||
<translation>&Kopieren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="120"/>
|
||||
<source>&Attach to card...</source>
|
||||
<translation>&An Karte anlegen...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="121"/>
|
||||
<source>Unattac&h</source>
|
||||
<translation>&Von Karte lösen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="122"/>
|
||||
<source>Set &P/T...</source>
|
||||
<translation>&Kampfwerte setzen...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="123"/>
|
||||
<source>&Set annotation...</source>
|
||||
<translation>&Hinweis setzen...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="125"/>
|
||||
<source>red</source>
|
||||
<translation>rot</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="126"/>
|
||||
<source>yellow</source>
|
||||
<translation>gelb</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="127"/>
|
||||
<source>green</source>
|
||||
<translation>grün</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="129"/>
|
||||
<source>&Add counter (%1)</source>
|
||||
<translation>Zählmarke &hinzufügen (%1)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="131"/>
|
||||
<source>&Remove counter (%1)</source>
|
||||
<translation>Zählmarke &entfernen (%1)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="133"/>
|
||||
<source>&Set counters (%1)...</source>
|
||||
<translation>Zählmarken &setzen (%1)...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="134"/>
|
||||
<source>&top of library</source>
|
||||
<translation>&auf die Bibliothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="135"/>
|
||||
<source>&bottom of library</source>
|
||||
<translation>&unter die Bibliothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="136"/>
|
||||
<source>&graveyard</source>
|
||||
<translation>in den &Friedhof</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="137"/>
|
||||
<source>Ctrl+Del</source>
|
||||
<translation>Ctrl+Del</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="138"/>
|
||||
<source>&exile</source>
|
||||
<translation>ins &Exil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="140"/>
|
||||
<source>&Move to</source>
|
||||
<translation>&Verschieben</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>CardZone</name>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="35"/>
|
||||
<location filename="../src/cardzone.cpp" line="37"/>
|
||||
<location filename="../src/cardzone.cpp" line="41"/>
|
||||
<location filename="../src/cardzone.cpp" line="43"/>
|
||||
<source>his hand</source>
|
||||
<translation>seine Hand</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="35"/>
|
||||
<location filename="../src/cardzone.cpp" line="37"/>
|
||||
<location filename="../src/cardzone.cpp" line="41"/>
|
||||
<location filename="../src/cardzone.cpp" line="43"/>
|
||||
<source>%1's hand</source>
|
||||
<translation>%1s Hand</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="36"/>
|
||||
<location filename="../src/cardzone.cpp" line="42"/>
|
||||
<source>of his hand</source>
|
||||
<translation>seiner Hand</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="36"/>
|
||||
<location filename="../src/cardzone.cpp" line="42"/>
|
||||
<source>of %1's hand</source>
|
||||
<translation>von %1s Hand</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="41"/>
|
||||
<location filename="../src/cardzone.cpp" line="43"/>
|
||||
<location filename="../src/cardzone.cpp" line="47"/>
|
||||
<location filename="../src/cardzone.cpp" line="49"/>
|
||||
<source>his library</source>
|
||||
<translation>seine Bibliothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="41"/>
|
||||
<location filename="../src/cardzone.cpp" line="43"/>
|
||||
<location filename="../src/cardzone.cpp" line="47"/>
|
||||
<location filename="../src/cardzone.cpp" line="49"/>
|
||||
<source>%1's library</source>
|
||||
<translation>%1s Bibliothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="42"/>
|
||||
<location filename="../src/cardzone.cpp" line="48"/>
|
||||
<source>of his library</source>
|
||||
<translation>seiner Bibliothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="42"/>
|
||||
<location filename="../src/cardzone.cpp" line="48"/>
|
||||
<source>of %1's library</source>
|
||||
<translation>von %1s Bibliothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="47"/>
|
||||
<location filename="../src/cardzone.cpp" line="49"/>
|
||||
<location filename="../src/cardzone.cpp" line="53"/>
|
||||
<location filename="../src/cardzone.cpp" line="55"/>
|
||||
<source>his graveyard</source>
|
||||
<translation>sein Friedhof</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="47"/>
|
||||
<location filename="../src/cardzone.cpp" line="49"/>
|
||||
<location filename="../src/cardzone.cpp" line="53"/>
|
||||
<location filename="../src/cardzone.cpp" line="55"/>
|
||||
<source>%1's graveyard</source>
|
||||
<translation>%1s Friedhof</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="48"/>
|
||||
<location filename="../src/cardzone.cpp" line="54"/>
|
||||
<source>of his graveyard</source>
|
||||
<translation>seines Friedhofs</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="48"/>
|
||||
<location filename="../src/cardzone.cpp" line="54"/>
|
||||
<source>of %1's graveyard</source>
|
||||
<translation>von %1s Friedhof</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="53"/>
|
||||
<location filename="../src/cardzone.cpp" line="55"/>
|
||||
<location filename="../src/cardzone.cpp" line="59"/>
|
||||
<location filename="../src/cardzone.cpp" line="61"/>
|
||||
<source>his exile</source>
|
||||
<translation>sein Exil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="53"/>
|
||||
<location filename="../src/cardzone.cpp" line="55"/>
|
||||
<location filename="../src/cardzone.cpp" line="59"/>
|
||||
<location filename="../src/cardzone.cpp" line="61"/>
|
||||
<source>%1's exile</source>
|
||||
<translation>%1s Exil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="54"/>
|
||||
<location filename="../src/cardzone.cpp" line="60"/>
|
||||
<source>of his exile</source>
|
||||
<translation>seines Exils</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="54"/>
|
||||
<location filename="../src/cardzone.cpp" line="60"/>
|
||||
<source>of %1's exile</source>
|
||||
<translation>von %1s Exil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="59"/>
|
||||
<location filename="../src/cardzone.cpp" line="61"/>
|
||||
<location filename="../src/cardzone.cpp" line="65"/>
|
||||
<location filename="../src/cardzone.cpp" line="67"/>
|
||||
<source>his sideboard</source>
|
||||
<translation>sein Sideboard</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="59"/>
|
||||
<location filename="../src/cardzone.cpp" line="61"/>
|
||||
<location filename="../src/cardzone.cpp" line="65"/>
|
||||
<location filename="../src/cardzone.cpp" line="67"/>
|
||||
<source>%1's sideboard</source>
|
||||
<translation>%1s Sideboard</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="60"/>
|
||||
<location filename="../src/cardzone.cpp" line="66"/>
|
||||
<source>of his sideboard</source>
|
||||
<translation>seines Sideboards</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="60"/>
|
||||
<location filename="../src/cardzone.cpp" line="66"/>
|
||||
<source>of %1's sideboard</source>
|
||||
<translation>von %1s Sideboard</translation>
|
||||
</message>
|
||||
|
@ -607,16 +715,21 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_create_token.cpp" line="30"/>
|
||||
<source>&Destroy token when it leaves the table</source>
|
||||
<translation>Spielstein &zerstören, wenn er das Spielfeld verlässt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_create_token.cpp" line="33"/>
|
||||
<source>&OK</source>
|
||||
<translation>&OK</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_create_token.cpp" line="32"/>
|
||||
<location filename="../src/dlg_create_token.cpp" line="35"/>
|
||||
<source>&Cancel</source>
|
||||
<translation>A&bbrechen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_create_token.cpp" line="54"/>
|
||||
<location filename="../src/dlg_create_token.cpp" line="58"/>
|
||||
<source>Create token</source>
|
||||
<translation>Spielstein erstellen</translation>
|
||||
</message>
|
||||
|
@ -1644,16 +1757,30 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="207"/>
|
||||
<source>%1 creates token: %2 (%3).</source>
|
||||
<translation>%1 erstellt einen Spielstein: %2 (%3).</translation>
|
||||
<source>%1 destroys %2.</source>
|
||||
<translation>%1 zerstört %2.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="212"/>
|
||||
<source>%1 creates token: %2%3.</source>
|
||||
<translation>%1 erstellt Token: %2%3.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="218"/>
|
||||
<source>%1 points from %2's %3 to %4.</source>
|
||||
<translation>%1 zeigt von %2s %3 auf %4.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 creates token: %2 (%3).</source>
|
||||
<translation type="obsolete">%1 erstellt einen Spielstein: %2 (%3).</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="225"/>
|
||||
<source>%1 points from %2's %3 to %4's %5.</source>
|
||||
<translation>%1 zeigt von %2s %3 auf %4s %5.</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="../src/messagelogwidget.cpp" line="227"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="240"/>
|
||||
<source>%1 places %n counter(s) (%2) on %3 (now %4).</source>
|
||||
<translation>
|
||||
<numerusform>%1 legt eine Marke (%2) auf %3 (jetzt %4).</numerusform>
|
||||
|
@ -1661,7 +1788,7 @@
|
|||
</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="../src/messagelogwidget.cpp" line="229"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="242"/>
|
||||
<source>%1 removes %n counter(s) (%2) from %3 (now %4).</source>
|
||||
<translation>
|
||||
<numerusform>%1 entfernt eine Marke (%2) von %3 (jetzt %4).</numerusform>
|
||||
|
@ -1669,37 +1796,37 @@
|
|||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="232"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="245"/>
|
||||
<source>red</source>
|
||||
<translation>rot</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="233"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="246"/>
|
||||
<source>yellow</source>
|
||||
<translation>gelb</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="234"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="247"/>
|
||||
<source>green</source>
|
||||
<translation>grün</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="253"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="266"/>
|
||||
<source>%1 sets counter %2 to %3 (%4%5).</source>
|
||||
<translation>%1 setzt Zähler %2 auf %3 (%4%5).</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="268"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="281"/>
|
||||
<source>%1 sets PT of %2 to %3.</source>
|
||||
<translation>%1 setzt Kampfwerte von %2 auf %3.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="273"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="286"/>
|
||||
<source>%1 sets annotation of %2 to %3.</source>
|
||||
<translation>%1 versieht %2 mit dem Hinweis %3.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="279"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="292"/>
|
||||
<source>%1 is looking at the top %2 cards %3.</source>
|
||||
<translation>%1 sieht sich die obersten %2 Karten %3 an.</translation>
|
||||
</message>
|
||||
|
@ -1796,7 +1923,7 @@
|
|||
<translation type="obsolete">%1 entfernt %2 Zählmarken von %3 (jetzt %4).</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="248"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="261"/>
|
||||
<source>%1 %2 %3.</source>
|
||||
<translation>%1 %2 %3.</translation>
|
||||
</message>
|
||||
|
@ -1809,17 +1936,17 @@
|
|||
<translation type="obsolete">%1 sieht sich die obersten %2 Karten %3 an.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="281"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="294"/>
|
||||
<source>%1 is looking at %2.</source>
|
||||
<translation>%1 sieht sich %2 an.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="287"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="300"/>
|
||||
<source>%1 stops looking at %2.</source>
|
||||
<translation>%1 sieht sich %2 nicht mehr an.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="311"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="324"/>
|
||||
<source>ending phase</source>
|
||||
<translation>die Zugendphase</translation>
|
||||
</message>
|
||||
|
@ -1848,57 +1975,57 @@
|
|||
<translation type="obsolete">%1 sieht sich %2s %3 nicht mehr an</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="293"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="306"/>
|
||||
<source>It is now %1's turn.</source>
|
||||
<translation>%1 ist am Zug.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="301"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="314"/>
|
||||
<source>untap step</source>
|
||||
<translation>das Enttappsegment</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="302"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="315"/>
|
||||
<source>upkeep step</source>
|
||||
<translation>das Versorgungssegment</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="303"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="316"/>
|
||||
<source>draw step</source>
|
||||
<translation>das Ziehsegment</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="304"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="317"/>
|
||||
<source>first main phase</source>
|
||||
<translation>die erste Hauptphase</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="305"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="318"/>
|
||||
<source>beginning of combat step</source>
|
||||
<translation>das Anfangssegment der Kampfphase</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="306"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="319"/>
|
||||
<source>declare attackers step</source>
|
||||
<translation>das Angreifer-Deklarieren-Segment</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="307"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="320"/>
|
||||
<source>declare blockers step</source>
|
||||
<translation>das Blocker-Deklarieren-Segment</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="308"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="321"/>
|
||||
<source>combat damage step</source>
|
||||
<translation>das Kampfschadenssegment</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="309"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="322"/>
|
||||
<source>end of combat step</source>
|
||||
<translation>das Endsegment der Kampfphase</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="310"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="323"/>
|
||||
<source>second main phase</source>
|
||||
<translation>die zweite Hauptphase</translation>
|
||||
</message>
|
||||
|
@ -1907,7 +2034,7 @@
|
|||
<translation type="obsolete">das Ende-des-Zuges-Segment</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="313"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="326"/>
|
||||
<source>It is now the %1.</source>
|
||||
<translation>Es ist nun %1.</translation>
|
||||
</message>
|
||||
|
@ -1916,12 +2043,12 @@
|
|||
<translation type="obsolete">%1 bewegt %2 %3 nach %4</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="248"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="261"/>
|
||||
<source>taps</source>
|
||||
<translation>tappt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="248"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="261"/>
|
||||
<source>untaps</source>
|
||||
<translation>enttappt</translation>
|
||||
</message>
|
||||
|
@ -1946,7 +2073,7 @@
|
|||
<translation type="obsolete">%1 entfernt %2 Zählmarken von %3 (jetzt %4)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="245"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="258"/>
|
||||
<source>his permanents</source>
|
||||
<translation>seine bleibenden Karten</translation>
|
||||
</message>
|
||||
|
@ -1959,12 +2086,12 @@
|
|||
<translation type="obsolete">%1 setzt Zähler "%2" auf %3 (%4%5)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="260"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="273"/>
|
||||
<source>%1 sets %2 to not untap normally.</source>
|
||||
<translation>%1 setzt %2 auf explizites Enttappen.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="262"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="275"/>
|
||||
<source>%1 sets %2 to untap normally.</source>
|
||||
<translation>%1 setzt %2 auf normales Enttappen.</translation>
|
||||
</message>
|
||||
|
@ -2069,41 +2196,41 @@
|
|||
<context>
|
||||
<name>Player</name>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="348"/>
|
||||
<location filename="../src/player.cpp" line="352"/>
|
||||
<location filename="../src/player.cpp" line="356"/>
|
||||
<location filename="../src/player.cpp" line="288"/>
|
||||
<location filename="../src/player.cpp" line="292"/>
|
||||
<location filename="../src/player.cpp" line="296"/>
|
||||
<source>Move to &top of library</source>
|
||||
<translation>Oben auf die Biblio&thek legen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="349"/>
|
||||
<location filename="../src/player.cpp" line="353"/>
|
||||
<location filename="../src/player.cpp" line="357"/>
|
||||
<location filename="../src/player.cpp" line="289"/>
|
||||
<location filename="../src/player.cpp" line="293"/>
|
||||
<location filename="../src/player.cpp" line="297"/>
|
||||
<source>Move to &bottom of library</source>
|
||||
<translation>Unter die &Bibliothek legen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="360"/>
|
||||
<location filename="../src/player.cpp" line="300"/>
|
||||
<source>&View library</source>
|
||||
<translation>&Zeige Bibliothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="361"/>
|
||||
<location filename="../src/player.cpp" line="301"/>
|
||||
<source>F3</source>
|
||||
<translation>F3</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="362"/>
|
||||
<location filename="../src/player.cpp" line="302"/>
|
||||
<source>View &top cards of library...</source>
|
||||
<translation>Zeige die oberen Kar&ten der Bibliothek...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="341"/>
|
||||
<location filename="../src/player.cpp" line="281"/>
|
||||
<source>&View graveyard</source>
|
||||
<translation>&Zeige Friedhof</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="364"/>
|
||||
<location filename="../src/player.cpp" line="304"/>
|
||||
<source>F4</source>
|
||||
<translation>F4</translation>
|
||||
</message>
|
||||
|
@ -2112,32 +2239,32 @@
|
|||
<translation type="obsolete">Zeige ent&fernte Karten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="365"/>
|
||||
<location filename="../src/player.cpp" line="305"/>
|
||||
<source>&View sideboard</source>
|
||||
<translation>Zeige &Sideboard</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="343"/>
|
||||
<location filename="../src/player.cpp" line="283"/>
|
||||
<source>Player "%1"</source>
|
||||
<translation>Spieler "%1"</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="370"/>
|
||||
<location filename="../src/player.cpp" line="310"/>
|
||||
<source>Take &mulligan</source>
|
||||
<translation>&Mulligan nehmen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="375"/>
|
||||
<location filename="../src/player.cpp" line="315"/>
|
||||
<source>&Hand</source>
|
||||
<translation>&Hand</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="377"/>
|
||||
<location filename="../src/player.cpp" line="317"/>
|
||||
<source>&Library</source>
|
||||
<translation>Bib&liothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="344"/>
|
||||
<location filename="../src/player.cpp" line="284"/>
|
||||
<source>&Graveyard</source>
|
||||
<translation>&Friedhof</translation>
|
||||
</message>
|
||||
|
@ -2146,80 +2273,78 @@
|
|||
<translation type="obsolete">Entfe&rnte Karten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="376"/>
|
||||
<location filename="../src/player.cpp" line="316"/>
|
||||
<source>&Sideboard</source>
|
||||
<translation>&Sideboard</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="398"/>
|
||||
<source>Set &P/T...</source>
|
||||
<translation>&Kampfwerte setzen...</translation>
|
||||
<translation type="obsolete">&Kampfwerte setzen...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="399"/>
|
||||
<source>&Set annotation...</source>
|
||||
<translation>&Hinweis setzen...</translation>
|
||||
<translation type="obsolete">&Hinweis setzen...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="444"/>
|
||||
<location filename="../src/player.cpp" line="366"/>
|
||||
<source>View top cards of library</source>
|
||||
<translation>Zeige die obersten Karten der Bibliothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="444"/>
|
||||
<location filename="../src/player.cpp" line="366"/>
|
||||
<source>Number of cards:</source>
|
||||
<translation>Anzahl der Karten:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="366"/>
|
||||
<location filename="../src/player.cpp" line="306"/>
|
||||
<source>&Draw card</source>
|
||||
<translation>Karte &ziehen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="342"/>
|
||||
<location filename="../src/player.cpp" line="282"/>
|
||||
<source>&View exile</source>
|
||||
<translation>&Zeige Exil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="345"/>
|
||||
<location filename="../src/player.cpp" line="285"/>
|
||||
<source>&Exile</source>
|
||||
<translation>&Exil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="354"/>
|
||||
<location filename="../src/player.cpp" line="358"/>
|
||||
<location filename="../src/player.cpp" line="294"/>
|
||||
<location filename="../src/player.cpp" line="298"/>
|
||||
<source>Move to &hand</source>
|
||||
<translation>auf die &Hand nehmen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="350"/>
|
||||
<location filename="../src/player.cpp" line="359"/>
|
||||
<location filename="../src/player.cpp" line="290"/>
|
||||
<location filename="../src/player.cpp" line="299"/>
|
||||
<source>Move to g&raveyard</source>
|
||||
<translation>auf den &Friedhof legen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="351"/>
|
||||
<location filename="../src/player.cpp" line="355"/>
|
||||
<location filename="../src/player.cpp" line="291"/>
|
||||
<location filename="../src/player.cpp" line="295"/>
|
||||
<source>Move to &exile</source>
|
||||
<translation>ins &Exil schicken</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="363"/>
|
||||
<location filename="../src/player.cpp" line="303"/>
|
||||
<source>Ctrl+W</source>
|
||||
<translation>Ctrl+W</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="367"/>
|
||||
<location filename="../src/player.cpp" line="307"/>
|
||||
<source>Ctrl+D</source>
|
||||
<translation>Ctrl+D</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="368"/>
|
||||
<location filename="../src/player.cpp" line="308"/>
|
||||
<source>D&raw cards...</source>
|
||||
<translation>Ka&rten ziehen...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="369"/>
|
||||
<location filename="../src/player.cpp" line="309"/>
|
||||
<source>Ctrl+E</source>
|
||||
<translation>Ctrl+E</translation>
|
||||
</message>
|
||||
|
@ -2228,32 +2353,32 @@
|
|||
<translation type="obsolete">&Mulligan nehmen...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="371"/>
|
||||
<location filename="../src/player.cpp" line="311"/>
|
||||
<source>Ctrl+M</source>
|
||||
<translation>Ctrl+M</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="372"/>
|
||||
<location filename="../src/player.cpp" line="312"/>
|
||||
<source>&Shuffle</source>
|
||||
<translation>Mi&schen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="373"/>
|
||||
<location filename="../src/player.cpp" line="313"/>
|
||||
<source>Ctrl+S</source>
|
||||
<translation>Ctrl+S</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="378"/>
|
||||
<location filename="../src/player.cpp" line="318"/>
|
||||
<source>&Counters</source>
|
||||
<translation>&Zähler</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="380"/>
|
||||
<location filename="../src/player.cpp" line="320"/>
|
||||
<source>&Untap all permanents</source>
|
||||
<translation>&Enttappe alle bleibenden Karten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="381"/>
|
||||
<location filename="../src/player.cpp" line="321"/>
|
||||
<source>Ctrl+U</source>
|
||||
<translation>Ctrl+U</translation>
|
||||
</message>
|
||||
|
@ -2282,124 +2407,108 @@
|
|||
<translation type="obsolete">Ctrl+L</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="382"/>
|
||||
<location filename="../src/player.cpp" line="322"/>
|
||||
<source>R&oll die...</source>
|
||||
<translation>&Würfeln...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="383"/>
|
||||
<location filename="../src/player.cpp" line="323"/>
|
||||
<source>Ctrl+I</source>
|
||||
<translation>Ctrl+I</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="384"/>
|
||||
<location filename="../src/player.cpp" line="324"/>
|
||||
<source>&Create token...</source>
|
||||
<translation>Spiels&tein erstellen...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="385"/>
|
||||
<location filename="../src/player.cpp" line="325"/>
|
||||
<source>Ctrl+T</source>
|
||||
<translation>Ctrl+T</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="386"/>
|
||||
<location filename="../src/player.cpp" line="326"/>
|
||||
<source>C&reate another token</source>
|
||||
<translation>&Noch einen Spielstein erstellen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="387"/>
|
||||
<location filename="../src/player.cpp" line="327"/>
|
||||
<source>Ctrl+G</source>
|
||||
<translation>Ctrl+G</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="388"/>
|
||||
<location filename="../src/player.cpp" line="328"/>
|
||||
<source>S&ay</source>
|
||||
<translation>S&agen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="394"/>
|
||||
<location filename="../src/player.cpp" line="334"/>
|
||||
<source>C&ard</source>
|
||||
<translation>&Karte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="395"/>
|
||||
<source>&Tap</source>
|
||||
<translation>&Tappen</translation>
|
||||
<translation type="obsolete">&Tappen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="396"/>
|
||||
<source>&Untap</source>
|
||||
<translation>E&nttappen</translation>
|
||||
<translation type="obsolete">E&nttappen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="397"/>
|
||||
<source>Toggle &normal untapping</source>
|
||||
<translation>&Normales Enttappen umschalten</translation>
|
||||
<translation type="obsolete">&Normales Enttappen umschalten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="400"/>
|
||||
<source>&Flip</source>
|
||||
<translation>&Umdrehen</translation>
|
||||
<translation type="obsolete">&Umdrehen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="401"/>
|
||||
<source>Counters (red)</source>
|
||||
<translation>Marken (rot)</translation>
|
||||
<translation type="obsolete">Marken (rot)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="402"/>
|
||||
<source>Counters (yellow)</source>
|
||||
<translation>Marken (gelb)</translation>
|
||||
<translation type="obsolete">Marken (gelb)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="403"/>
|
||||
<source>Counters (green)</source>
|
||||
<translation>Marken (grün)</translation>
|
||||
<translation type="obsolete">Marken (grün)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="405"/>
|
||||
<source>&Add counter</source>
|
||||
<translation>Zählm&arke hinzufügen</translation>
|
||||
<translation type="obsolete">Zählm&arke hinzufügen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="407"/>
|
||||
<source>&Remove counter</source>
|
||||
<translation>Zählma&rke entfernen</translation>
|
||||
<translation type="obsolete">Zählma&rke entfernen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="409"/>
|
||||
<source>&Set counters...</source>
|
||||
<translation>&Setze Zählmarken...</translation>
|
||||
<translation type="obsolete">&Setze Zählmarken...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="410"/>
|
||||
<source>&top of library</source>
|
||||
<translation>&auf die Bibliothek</translation>
|
||||
<translation type="obsolete">&auf die Bibliothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="411"/>
|
||||
<source>&bottom of library</source>
|
||||
<translation>&unter die Bibliothek</translation>
|
||||
<translation type="obsolete">&unter die Bibliothek</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="412"/>
|
||||
<source>&graveyard</source>
|
||||
<translation>in den &Friedhof</translation>
|
||||
<translation type="obsolete">in den &Friedhof</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="413"/>
|
||||
<source>Ctrl+Del</source>
|
||||
<translation>Ctrl+Del</translation>
|
||||
<translation type="obsolete">Ctrl+Del</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="414"/>
|
||||
<source>&exile</source>
|
||||
<translation>ins &Exil</translation>
|
||||
<translation type="obsolete">ins &Exil</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="416"/>
|
||||
<source>&Move to</source>
|
||||
<translation>&Verschieben</translation>
|
||||
<translation type="obsolete">&Verschieben</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>F5</source>
|
||||
|
@ -2426,38 +2535,38 @@
|
|||
<translation type="obsolete">F10</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="483"/>
|
||||
<location filename="../src/player.cpp" line="405"/>
|
||||
<source>Draw cards</source>
|
||||
<translation>Karten ziehen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="483"/>
|
||||
<location filename="../src/player.cpp" line="1081"/>
|
||||
<location filename="../src/player.cpp" line="405"/>
|
||||
<location filename="../src/player.cpp" line="1040"/>
|
||||
<source>Number:</source>
|
||||
<translation>Anzahl:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="1021"/>
|
||||
<location filename="../src/player.cpp" line="972"/>
|
||||
<source>Set power/toughness</source>
|
||||
<translation>Kampfwerte setzen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="1021"/>
|
||||
<location filename="../src/player.cpp" line="972"/>
|
||||
<source>Please enter the new PT:</source>
|
||||
<translation>Bitte die neuen Kampfwerte eingeben:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="1043"/>
|
||||
<location filename="../src/player.cpp" line="994"/>
|
||||
<source>Set annotation</source>
|
||||
<translation>Hinweis setzen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="1043"/>
|
||||
<location filename="../src/player.cpp" line="994"/>
|
||||
<source>Please enter the new annotation:</source>
|
||||
<translation>Bitte den Hinweis eingeben:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="1081"/>
|
||||
<location filename="../src/player.cpp" line="1040"/>
|
||||
<source>Set counters</source>
|
||||
<translation>Setze Zählmarken</translation>
|
||||
</message>
|
||||
|
@ -2470,12 +2579,12 @@
|
|||
<translation type="obsolete">Neue Lebenspunkte insgesamt:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="496"/>
|
||||
<location filename="../src/player.cpp" line="418"/>
|
||||
<source>Roll die</source>
|
||||
<translation>Würfeln</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="496"/>
|
||||
<location filename="../src/player.cpp" line="418"/>
|
||||
<source>Number of sides:</source>
|
||||
<translation>Anzahl der Seiten:</translation>
|
||||
</message>
|
||||
|
|
|
@ -117,115 +117,223 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>CardItem</name>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="115"/>
|
||||
<source>&Tap</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="116"/>
|
||||
<source>&Untap</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="117"/>
|
||||
<source>Toggle &normal untapping</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="118"/>
|
||||
<source>&Flip</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="119"/>
|
||||
<source>&Clone</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="120"/>
|
||||
<source>&Attach to card...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="121"/>
|
||||
<source>Unattac&h</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="122"/>
|
||||
<source>Set &P/T...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="123"/>
|
||||
<source>&Set annotation...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="125"/>
|
||||
<source>red</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="126"/>
|
||||
<source>yellow</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="127"/>
|
||||
<source>green</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="129"/>
|
||||
<source>&Add counter (%1)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="131"/>
|
||||
<source>&Remove counter (%1)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="133"/>
|
||||
<source>&Set counters (%1)...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="134"/>
|
||||
<source>&top of library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="135"/>
|
||||
<source>&bottom of library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="136"/>
|
||||
<source>&graveyard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="137"/>
|
||||
<source>Ctrl+Del</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="138"/>
|
||||
<source>&exile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/carditem.cpp" line="140"/>
|
||||
<source>&Move to</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>CardZone</name>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="35"/>
|
||||
<location filename="../src/cardzone.cpp" line="37"/>
|
||||
<location filename="../src/cardzone.cpp" line="41"/>
|
||||
<location filename="../src/cardzone.cpp" line="43"/>
|
||||
<source>his hand</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="35"/>
|
||||
<location filename="../src/cardzone.cpp" line="37"/>
|
||||
<location filename="../src/cardzone.cpp" line="41"/>
|
||||
<location filename="../src/cardzone.cpp" line="43"/>
|
||||
<source>%1's hand</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="36"/>
|
||||
<location filename="../src/cardzone.cpp" line="42"/>
|
||||
<source>of his hand</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="36"/>
|
||||
<location filename="../src/cardzone.cpp" line="42"/>
|
||||
<source>of %1's hand</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="41"/>
|
||||
<location filename="../src/cardzone.cpp" line="43"/>
|
||||
<location filename="../src/cardzone.cpp" line="47"/>
|
||||
<location filename="../src/cardzone.cpp" line="49"/>
|
||||
<source>his library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="41"/>
|
||||
<location filename="../src/cardzone.cpp" line="43"/>
|
||||
<location filename="../src/cardzone.cpp" line="47"/>
|
||||
<location filename="../src/cardzone.cpp" line="49"/>
|
||||
<source>%1's library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="42"/>
|
||||
<location filename="../src/cardzone.cpp" line="48"/>
|
||||
<source>of his library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="42"/>
|
||||
<location filename="../src/cardzone.cpp" line="48"/>
|
||||
<source>of %1's library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="47"/>
|
||||
<location filename="../src/cardzone.cpp" line="49"/>
|
||||
<location filename="../src/cardzone.cpp" line="53"/>
|
||||
<location filename="../src/cardzone.cpp" line="55"/>
|
||||
<source>his graveyard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="47"/>
|
||||
<location filename="../src/cardzone.cpp" line="49"/>
|
||||
<location filename="../src/cardzone.cpp" line="53"/>
|
||||
<location filename="../src/cardzone.cpp" line="55"/>
|
||||
<source>%1's graveyard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="48"/>
|
||||
<location filename="../src/cardzone.cpp" line="54"/>
|
||||
<source>of his graveyard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="48"/>
|
||||
<location filename="../src/cardzone.cpp" line="54"/>
|
||||
<source>of %1's graveyard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="53"/>
|
||||
<location filename="../src/cardzone.cpp" line="55"/>
|
||||
<location filename="../src/cardzone.cpp" line="59"/>
|
||||
<location filename="../src/cardzone.cpp" line="61"/>
|
||||
<source>his exile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="53"/>
|
||||
<location filename="../src/cardzone.cpp" line="55"/>
|
||||
<location filename="../src/cardzone.cpp" line="59"/>
|
||||
<location filename="../src/cardzone.cpp" line="61"/>
|
||||
<source>%1's exile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="54"/>
|
||||
<location filename="../src/cardzone.cpp" line="60"/>
|
||||
<source>of his exile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="54"/>
|
||||
<location filename="../src/cardzone.cpp" line="60"/>
|
||||
<source>of %1's exile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="59"/>
|
||||
<location filename="../src/cardzone.cpp" line="61"/>
|
||||
<location filename="../src/cardzone.cpp" line="65"/>
|
||||
<location filename="../src/cardzone.cpp" line="67"/>
|
||||
<source>his sideboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="59"/>
|
||||
<location filename="../src/cardzone.cpp" line="61"/>
|
||||
<location filename="../src/cardzone.cpp" line="65"/>
|
||||
<location filename="../src/cardzone.cpp" line="67"/>
|
||||
<source>%1's sideboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="60"/>
|
||||
<location filename="../src/cardzone.cpp" line="66"/>
|
||||
<source>of his sideboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/cardzone.cpp" line="60"/>
|
||||
<location filename="../src/cardzone.cpp" line="66"/>
|
||||
<source>of %1's sideboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -515,16 +623,21 @@
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_create_token.cpp" line="30"/>
|
||||
<source>&Destroy token when it leaves the table</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_create_token.cpp" line="33"/>
|
||||
<source>&OK</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_create_token.cpp" line="32"/>
|
||||
<location filename="../src/dlg_create_token.cpp" line="35"/>
|
||||
<source>&Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/dlg_create_token.cpp" line="54"/>
|
||||
<location filename="../src/dlg_create_token.cpp" line="58"/>
|
||||
<source>Create token</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -1053,17 +1166,12 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="207"/>
|
||||
<source>%1 creates token: %2 (%3).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="212"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="225"/>
|
||||
<source>%1 points from %2's %3 to %4's %5.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="../src/messagelogwidget.cpp" line="227"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="240"/>
|
||||
<source>%1 places %n counter(s) (%2) on %3 (now %4).</source>
|
||||
<translation>
|
||||
<numerusform>%1 places a counter (%2) on %3 (now %4).</numerusform>
|
||||
|
@ -1071,7 +1179,7 @@
|
|||
</translation>
|
||||
</message>
|
||||
<message numerus="yes">
|
||||
<location filename="../src/messagelogwidget.cpp" line="229"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="242"/>
|
||||
<source>%1 removes %n counter(s) (%2) from %3 (now %4).</source>
|
||||
<translation>
|
||||
<numerusform>%1 removes a counter (%2) from %3 (now %4).</numerusform>
|
||||
|
@ -1079,37 +1187,37 @@
|
|||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="232"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="245"/>
|
||||
<source>red</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="233"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="246"/>
|
||||
<source>yellow</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="234"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="247"/>
|
||||
<source>green</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="253"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="266"/>
|
||||
<source>%1 sets counter %2 to %3 (%4%5).</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="268"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="281"/>
|
||||
<source>%1 sets PT of %2 to %3.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="273"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="286"/>
|
||||
<source>%1 sets annotation of %2 to %3.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="279"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="292"/>
|
||||
<source>%1 is looking at the top %2 cards %3.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -1174,27 +1282,42 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="248"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="207"/>
|
||||
<source>%1 destroys %2.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="212"/>
|
||||
<source>%1 creates token: %2%3.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="218"/>
|
||||
<source>%1 points from %2's %3 to %4.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="261"/>
|
||||
<source>%1 %2 %3.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="281"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="294"/>
|
||||
<source>%1 is looking at %2.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="287"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="300"/>
|
||||
<source>%1 stops looking at %2.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="311"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="324"/>
|
||||
<source>ending phase</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="293"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="306"/>
|
||||
<source>It is now %1's turn.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -1204,82 +1327,82 @@
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="301"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="314"/>
|
||||
<source>untap step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="302"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="315"/>
|
||||
<source>upkeep step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="303"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="316"/>
|
||||
<source>draw step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="304"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="317"/>
|
||||
<source>first main phase</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="305"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="318"/>
|
||||
<source>beginning of combat step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="306"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="319"/>
|
||||
<source>declare attackers step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="307"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="320"/>
|
||||
<source>declare blockers step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="308"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="321"/>
|
||||
<source>combat damage step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="309"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="322"/>
|
||||
<source>end of combat step</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="310"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="323"/>
|
||||
<source>second main phase</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="313"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="326"/>
|
||||
<source>It is now the %1.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="248"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="261"/>
|
||||
<source>taps</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="248"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="261"/>
|
||||
<source>untaps</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="260"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="273"/>
|
||||
<source>%1 sets %2 to not untap normally.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="262"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="275"/>
|
||||
<source>%1 sets %2 to untap normally.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/messagelogwidget.cpp" line="245"/>
|
||||
<location filename="../src/messagelogwidget.cpp" line="258"/>
|
||||
<source>his permanents</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -1368,345 +1491,255 @@
|
|||
<context>
|
||||
<name>Player</name>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="348"/>
|
||||
<location filename="../src/player.cpp" line="352"/>
|
||||
<location filename="../src/player.cpp" line="356"/>
|
||||
<location filename="../src/player.cpp" line="288"/>
|
||||
<location filename="../src/player.cpp" line="292"/>
|
||||
<location filename="../src/player.cpp" line="296"/>
|
||||
<source>Move to &top of library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="349"/>
|
||||
<location filename="../src/player.cpp" line="353"/>
|
||||
<location filename="../src/player.cpp" line="357"/>
|
||||
<location filename="../src/player.cpp" line="289"/>
|
||||
<location filename="../src/player.cpp" line="293"/>
|
||||
<location filename="../src/player.cpp" line="297"/>
|
||||
<source>Move to &bottom of library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="360"/>
|
||||
<location filename="../src/player.cpp" line="300"/>
|
||||
<source>&View library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="361"/>
|
||||
<location filename="../src/player.cpp" line="301"/>
|
||||
<source>F3</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="362"/>
|
||||
<location filename="../src/player.cpp" line="302"/>
|
||||
<source>View &top cards of library...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="341"/>
|
||||
<location filename="../src/player.cpp" line="281"/>
|
||||
<source>&View graveyard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="364"/>
|
||||
<location filename="../src/player.cpp" line="304"/>
|
||||
<source>F4</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="365"/>
|
||||
<location filename="../src/player.cpp" line="305"/>
|
||||
<source>&View sideboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="343"/>
|
||||
<location filename="../src/player.cpp" line="283"/>
|
||||
<source>Player "%1"</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="375"/>
|
||||
<location filename="../src/player.cpp" line="315"/>
|
||||
<source>&Hand</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="377"/>
|
||||
<location filename="../src/player.cpp" line="317"/>
|
||||
<source>&Library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="344"/>
|
||||
<location filename="../src/player.cpp" line="284"/>
|
||||
<source>&Graveyard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="376"/>
|
||||
<location filename="../src/player.cpp" line="316"/>
|
||||
<source>&Sideboard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="398"/>
|
||||
<source>Set &P/T...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="399"/>
|
||||
<source>&Set annotation...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="444"/>
|
||||
<location filename="../src/player.cpp" line="366"/>
|
||||
<source>View top cards of library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="444"/>
|
||||
<location filename="../src/player.cpp" line="366"/>
|
||||
<source>Number of cards:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="366"/>
|
||||
<location filename="../src/player.cpp" line="306"/>
|
||||
<source>&Draw card</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="342"/>
|
||||
<location filename="../src/player.cpp" line="282"/>
|
||||
<source>&View exile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="345"/>
|
||||
<location filename="../src/player.cpp" line="285"/>
|
||||
<source>&Exile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="354"/>
|
||||
<location filename="../src/player.cpp" line="358"/>
|
||||
<location filename="../src/player.cpp" line="294"/>
|
||||
<location filename="../src/player.cpp" line="298"/>
|
||||
<source>Move to &hand</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="350"/>
|
||||
<location filename="../src/player.cpp" line="359"/>
|
||||
<location filename="../src/player.cpp" line="290"/>
|
||||
<location filename="../src/player.cpp" line="299"/>
|
||||
<source>Move to g&raveyard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="351"/>
|
||||
<location filename="../src/player.cpp" line="355"/>
|
||||
<location filename="../src/player.cpp" line="291"/>
|
||||
<location filename="../src/player.cpp" line="295"/>
|
||||
<source>Move to &exile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="363"/>
|
||||
<location filename="../src/player.cpp" line="303"/>
|
||||
<source>Ctrl+W</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="367"/>
|
||||
<location filename="../src/player.cpp" line="307"/>
|
||||
<source>Ctrl+D</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="368"/>
|
||||
<location filename="../src/player.cpp" line="308"/>
|
||||
<source>D&raw cards...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="369"/>
|
||||
<location filename="../src/player.cpp" line="309"/>
|
||||
<source>Ctrl+E</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="370"/>
|
||||
<location filename="../src/player.cpp" line="310"/>
|
||||
<source>Take &mulligan</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="371"/>
|
||||
<location filename="../src/player.cpp" line="311"/>
|
||||
<source>Ctrl+M</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="372"/>
|
||||
<location filename="../src/player.cpp" line="312"/>
|
||||
<source>&Shuffle</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="373"/>
|
||||
<location filename="../src/player.cpp" line="313"/>
|
||||
<source>Ctrl+S</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="378"/>
|
||||
<location filename="../src/player.cpp" line="318"/>
|
||||
<source>&Counters</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="380"/>
|
||||
<location filename="../src/player.cpp" line="320"/>
|
||||
<source>&Untap all permanents</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="381"/>
|
||||
<location filename="../src/player.cpp" line="321"/>
|
||||
<source>Ctrl+U</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="382"/>
|
||||
<location filename="../src/player.cpp" line="322"/>
|
||||
<source>R&oll die...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="383"/>
|
||||
<location filename="../src/player.cpp" line="323"/>
|
||||
<source>Ctrl+I</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="384"/>
|
||||
<location filename="../src/player.cpp" line="324"/>
|
||||
<source>&Create token...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="385"/>
|
||||
<location filename="../src/player.cpp" line="325"/>
|
||||
<source>Ctrl+T</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="386"/>
|
||||
<location filename="../src/player.cpp" line="326"/>
|
||||
<source>C&reate another token</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="387"/>
|
||||
<location filename="../src/player.cpp" line="327"/>
|
||||
<source>Ctrl+G</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="388"/>
|
||||
<location filename="../src/player.cpp" line="328"/>
|
||||
<source>S&ay</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="394"/>
|
||||
<location filename="../src/player.cpp" line="334"/>
|
||||
<source>C&ard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="395"/>
|
||||
<source>&Tap</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="396"/>
|
||||
<source>&Untap</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="397"/>
|
||||
<source>Toggle &normal untapping</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="400"/>
|
||||
<source>&Flip</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="401"/>
|
||||
<source>Counters (red)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="402"/>
|
||||
<source>Counters (yellow)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="403"/>
|
||||
<source>Counters (green)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="405"/>
|
||||
<source>&Add counter</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="407"/>
|
||||
<source>&Remove counter</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="409"/>
|
||||
<source>&Set counters...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="410"/>
|
||||
<source>&top of library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="411"/>
|
||||
<source>&bottom of library</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="412"/>
|
||||
<source>&graveyard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="413"/>
|
||||
<source>Ctrl+Del</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="414"/>
|
||||
<source>&exile</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="416"/>
|
||||
<source>&Move to</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="483"/>
|
||||
<source>Draw cards</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="483"/>
|
||||
<location filename="../src/player.cpp" line="1081"/>
|
||||
<location filename="../src/player.cpp" line="405"/>
|
||||
<location filename="../src/player.cpp" line="1040"/>
|
||||
<source>Number:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="496"/>
|
||||
<location filename="../src/player.cpp" line="418"/>
|
||||
<source>Roll die</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="496"/>
|
||||
<location filename="../src/player.cpp" line="418"/>
|
||||
<source>Number of sides:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="1021"/>
|
||||
<location filename="../src/player.cpp" line="972"/>
|
||||
<source>Set power/toughness</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="1021"/>
|
||||
<location filename="../src/player.cpp" line="972"/>
|
||||
<source>Please enter the new PT:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="1043"/>
|
||||
<location filename="../src/player.cpp" line="994"/>
|
||||
<source>Set annotation</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="1043"/>
|
||||
<location filename="../src/player.cpp" line="994"/>
|
||||
<source>Please enter the new annotation:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/player.cpp" line="1081"/>
|
||||
<location filename="../src/player.cpp" line="1040"/>
|
||||
<source>Set counters</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
|
@ -4,18 +4,20 @@
|
|||
#include <QColor>
|
||||
|
||||
class Server_Card;
|
||||
class Server_ArrowTarget;
|
||||
|
||||
class Server_Arrow {
|
||||
private:
|
||||
int id;
|
||||
Server_Card *startCard, *targetCard;
|
||||
Server_Card *startCard;
|
||||
Server_ArrowTarget *targetItem;
|
||||
QColor color;
|
||||
public:
|
||||
Server_Arrow(int _id, Server_Card *_startCard, Server_Card *_targetCard, const QColor &_color)
|
||||
: id(_id), startCard(_startCard), targetCard(_targetCard), color(_color) { }
|
||||
Server_Arrow(int _id, Server_Card *_startCard, Server_ArrowTarget *_targetItem, const QColor &_color)
|
||||
: id(_id), startCard(_startCard), targetItem(_targetItem), color(_color) { }
|
||||
int getId() const { return id; }
|
||||
Server_Card *getStartCard() const { return startCard; }
|
||||
Server_Card *getTargetCard() const { return targetCard; }
|
||||
Server_ArrowTarget *getTargetItem() const { return targetItem; }
|
||||
QColor getColor() const { return color; }
|
||||
};
|
||||
|
||||
|
|
10
common/server_arrowtarget.h
Normal file
10
common/server_arrowtarget.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
#ifndef SERVER_ARROWTARGET_H
|
||||
#define SERVER_ARROWTARGET_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class Server_ArrowTarget : public QObject {
|
||||
Q_OBJECT
|
||||
};
|
||||
|
||||
#endif
|
|
@ -20,12 +20,14 @@
|
|||
#ifndef SERVER_CARD_H
|
||||
#define SERVER_CARD_H
|
||||
|
||||
#include "server_arrowtarget.h"
|
||||
#include <QString>
|
||||
#include <QMap>
|
||||
|
||||
class Server_CardZone;
|
||||
|
||||
class Server_Card {
|
||||
class Server_Card : public Server_ArrowTarget {
|
||||
Q_OBJECT
|
||||
private:
|
||||
Server_CardZone *zone;
|
||||
int id;
|
||||
|
|
|
@ -197,6 +197,28 @@ Server_Player *Server_Game::addPlayer(Server_ProtocolHandler *handler, bool spec
|
|||
void Server_Game::removePlayer(Server_Player *player)
|
||||
{
|
||||
players.remove(player->getPlayerId());
|
||||
|
||||
// Remove all arrows of other players pointing to the player being removed or to one of his cards.
|
||||
QMapIterator<int, Server_Player *> playerIterator(players);
|
||||
while (playerIterator.hasNext()) {
|
||||
Server_Player *p = playerIterator.next().value();
|
||||
QList<Server_Arrow *> arrows = p->getArrows().values();
|
||||
QList<Server_Arrow *> toDelete;
|
||||
for (int i = 0; i < arrows.size(); ++i) {
|
||||
Server_Arrow *a = arrows[i];
|
||||
Server_Card *targetCard = qobject_cast<Server_Card *>(a->getTargetItem());
|
||||
if (targetCard) {
|
||||
if (targetCard->getZone()->getPlayer() == player)
|
||||
toDelete.append(a);
|
||||
} else if ((static_cast<Server_Player *>(a->getTargetItem()) == player) || (a->getStartCard()->getZone()->getPlayer() == player))
|
||||
toDelete.append(a);
|
||||
}
|
||||
for (int i = 0; i < toDelete.size(); ++i) {
|
||||
sendGameEvent(new Event_DeleteArrow(p->getPlayerId(), toDelete[i]->getId()));
|
||||
p->deleteArrow(toDelete[i]->getId());
|
||||
}
|
||||
}
|
||||
|
||||
sendGameEvent(new Event_Leave(player->getPlayerId()));
|
||||
bool spectator = player->getSpectator();
|
||||
delete player;
|
||||
|
@ -243,14 +265,27 @@ QList<ServerInfo_Player *> Server_Game::getGameState(Server_Player *playerWhosAs
|
|||
QMapIterator<int, Server_Arrow *> arrowIterator(player->getArrows());
|
||||
while (arrowIterator.hasNext()) {
|
||||
Server_Arrow *arrow = arrowIterator.next().value();
|
||||
Server_Card *targetCard = qobject_cast<Server_Card *>(arrow->getTargetItem());
|
||||
if (targetCard)
|
||||
arrowList.append(new ServerInfo_Arrow(
|
||||
arrow->getId(),
|
||||
arrow->getStartCard()->getZone()->getPlayer()->getPlayerId(),
|
||||
arrow->getStartCard()->getZone()->getName(),
|
||||
arrow->getStartCard()->getId(),
|
||||
arrow->getTargetCard()->getZone()->getPlayer()->getPlayerId(),
|
||||
arrow->getTargetCard()->getZone()->getName(),
|
||||
arrow->getTargetCard()->getId(),
|
||||
targetCard->getZone()->getPlayer()->getPlayerId(),
|
||||
targetCard->getZone()->getName(),
|
||||
targetCard->getId(),
|
||||
arrow->getColor()
|
||||
));
|
||||
else
|
||||
arrowList.append(new ServerInfo_Arrow(
|
||||
arrow->getId(),
|
||||
arrow->getStartCard()->getZone()->getPlayer()->getPlayerId(),
|
||||
arrow->getStartCard()->getZone()->getName(),
|
||||
arrow->getStartCard()->getId(),
|
||||
qobject_cast<Server_Player *>(arrow->getTargetItem())->getPlayerId(),
|
||||
QString(),
|
||||
-1,
|
||||
arrow->getColor()
|
||||
));
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef PLAYER_H
|
||||
#define PLAYER_H
|
||||
|
||||
#include <QObject>
|
||||
#include "server_arrowtarget.h"
|
||||
#include <QString>
|
||||
#include <QList>
|
||||
#include <QMap>
|
||||
|
@ -15,7 +15,7 @@ class Server_ProtocolHandler;
|
|||
class ProtocolItem;
|
||||
class ServerInfo_PlayerProperties;
|
||||
|
||||
class Server_Player : public QObject {
|
||||
class Server_Player : public Server_ArrowTarget {
|
||||
Q_OBJECT
|
||||
private:
|
||||
Server_Game *game;
|
||||
|
|
|
@ -593,7 +593,7 @@ ResponseCode Server_ProtocolHandler::moveCard(Server_Game *game, Server_Player *
|
|||
QMapIterator<int, Server_Arrow *> arrowIterator(players[i]->getArrows());
|
||||
while (arrowIterator.hasNext()) {
|
||||
Server_Arrow *arrow = arrowIterator.next().value();
|
||||
if ((arrow->getStartCard() == card) || (arrow->getTargetCard() == card))
|
||||
if ((arrow->getStartCard() == card) || (arrow->getTargetItem() == card))
|
||||
arrowsToDelete.append(arrow->getId());
|
||||
}
|
||||
for (int j = 0; j < arrowsToDelete.size(); ++j)
|
||||
|
@ -689,21 +689,33 @@ ResponseCode Server_ProtocolHandler::cmdCreateArrow(Command_CreateArrow *cmd, Co
|
|||
if (!startPlayer || !targetPlayer)
|
||||
return RespNameNotFound;
|
||||
Server_CardZone *startZone = startPlayer->getZones().value(cmd->getStartZone());
|
||||
Server_CardZone *targetZone = targetPlayer->getZones().value(cmd->getTargetZone());
|
||||
if (!startZone || !targetZone)
|
||||
bool playerTarget = cmd->getTargetZone().isEmpty();
|
||||
Server_CardZone *targetZone = 0;
|
||||
if (!playerTarget)
|
||||
targetZone = targetPlayer->getZones().value(cmd->getTargetZone());
|
||||
if (!startZone || (!targetZone && !playerTarget))
|
||||
return RespNameNotFound;
|
||||
Server_Card *startCard = startZone->getCard(cmd->getStartCardId(), false);
|
||||
Server_Card *targetCard = targetZone->getCard(cmd->getTargetCardId(), false);
|
||||
if (!startCard || !targetCard || (startCard == targetCard))
|
||||
Server_Card *targetCard = 0;
|
||||
if (!playerTarget)
|
||||
targetCard = targetZone->getCard(cmd->getTargetCardId(), false);
|
||||
if (!startCard || (!targetCard && !playerTarget) || (startCard == targetCard))
|
||||
return RespContextError;
|
||||
|
||||
Server_ArrowTarget *targetItem;
|
||||
if (playerTarget)
|
||||
targetItem = targetPlayer;
|
||||
else
|
||||
targetItem = targetCard;
|
||||
|
||||
QMapIterator<int, Server_Arrow *> arrowIterator(player->getArrows());
|
||||
while (arrowIterator.hasNext()) {
|
||||
Server_Arrow *temp = arrowIterator.next().value();
|
||||
if ((temp->getStartCard() == startCard) && (temp->getTargetCard() == targetCard))
|
||||
if ((temp->getStartCard() == startCard) && (temp->getTargetItem() == targetItem))
|
||||
return RespContextError;
|
||||
}
|
||||
|
||||
Server_Arrow *arrow = new Server_Arrow(player->newArrowId(), startCard, targetCard, cmd->getColor());
|
||||
Server_Arrow *arrow = new Server_Arrow(player->newArrowId(), startCard, targetItem, cmd->getColor());
|
||||
player->addArrow(arrow);
|
||||
game->sendGameEvent(new Event_CreateArrows(player->getPlayerId(), QList<ServerInfo_Arrow *>() << new ServerInfo_Arrow(
|
||||
arrow->getId(),
|
||||
|
@ -711,8 +723,8 @@ ResponseCode Server_ProtocolHandler::cmdCreateArrow(Command_CreateArrow *cmd, Co
|
|||
startZone->getName(),
|
||||
startCard->getId(),
|
||||
targetPlayer->getPlayerId(),
|
||||
targetZone->getName(),
|
||||
targetCard->getId(),
|
||||
cmd->getTargetZone(),
|
||||
cmd->getTargetCardId(),
|
||||
cmd->getColor()
|
||||
)));
|
||||
return RespOk;
|
||||
|
|
|
@ -29,7 +29,8 @@ HEADERS += src/servatrice.h \
|
|||
../common/server_counter.h \
|
||||
../common/server_game.h \
|
||||
../common/server_player.h \
|
||||
../common/server_protocolhandler.h
|
||||
../common/server_protocolhandler.h \
|
||||
../common/server_arrowtarget.h
|
||||
|
||||
SOURCES += src/main.cpp \
|
||||
src/servatrice.cpp \
|
||||
|
|
Loading…
Reference in a new issue