summaryrefslogtreecommitdiffstats
path: root/atlantik/libatlantikclient/atlantik_network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'atlantik/libatlantikclient/atlantik_network.cpp')
-rw-r--r--atlantik/libatlantikclient/atlantik_network.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/atlantik/libatlantikclient/atlantik_network.cpp b/atlantik/libatlantikclient/atlantik_network.cpp
index 4a5e42c2..51347f84 100644
--- a/atlantik/libatlantikclient/atlantik_network.cpp
+++ b/atlantik/libatlantikclient/atlantik_network.cpp
@@ -95,37 +95,37 @@ void AtlantikNetwork::endTurn()
void AtlantikNetwork::setName(TQString name)
{
// Almost deprecated, will be replaced by libmonopdprotocol
- writeData(TQString(".n%1").tqarg(name));
+ writeData(TQString(".n%1").arg(name));
}
void AtlantikNetwork::tokenConfirmation(Estate *estate)
{
- writeData(TQString(".t%1").tqarg(estate ? estate->id() : -1));
+ writeData(TQString(".t%1").arg(estate ? estate->id() : -1));
}
void AtlantikNetwork::estateToggleMortgage(Estate *estate)
{
- writeData(TQString(".em%1").tqarg(estate ? estate->id() : -1));
+ writeData(TQString(".em%1").arg(estate ? estate->id() : -1));
}
void AtlantikNetwork::estateHouseBuy(Estate *estate)
{
- writeData(TQString(".hb%1").tqarg(estate ? estate->id() : -1));
+ writeData(TQString(".hb%1").arg(estate ? estate->id() : -1));
}
void AtlantikNetwork::estateHouseSell(Estate *estate)
{
- writeData(TQString(".hs%1").tqarg(estate ? estate->id() : -1));
+ writeData(TQString(".hs%1").arg(estate ? estate->id() : -1));
}
void AtlantikNetwork::newGame(const TQString &gameType)
{
- writeData(TQString(".gn%1").tqarg(gameType));
+ writeData(TQString(".gn%1").arg(gameType));
}
void AtlantikNetwork::joinGame(int gameId)
{
- writeData(TQString(".gj%1").tqarg(gameId));
+ writeData(TQString(".gj%1").arg(gameId));
}
void AtlantikNetwork::cmdChat(TQString msg)
@@ -135,42 +135,42 @@ void AtlantikNetwork::cmdChat(TQString msg)
void AtlantikNetwork::newTrade(Player *player)
{
- writeData(TQString(".Tn%1").tqarg(player ? player->id() : -1));
+ writeData(TQString(".Tn%1").arg(player ? player->id() : -1));
}
void AtlantikNetwork::kickPlayer(Player *player)
{
- writeData(TQString(".gk%1").tqarg(player ? player->id() : -1));
+ writeData(TQString(".gk%1").arg(player ? player->id() : -1));
}
void AtlantikNetwork::tradeUpdateEstate(Trade *trade, Estate *estate, Player *player)
{
- writeData(TQString(".Te%1:%2:%3").tqarg(trade ? trade->tradeId() : -1).tqarg(estate ? estate->id() : -1).tqarg(player ? player->id() : -1));
+ writeData(TQString(".Te%1:%2:%3").arg(trade ? trade->tradeId() : -1).arg(estate ? estate->id() : -1).arg(player ? player->id() : -1));
}
void AtlantikNetwork::tradeUpdateMoney(Trade *trade, unsigned int money, Player *pFrom, Player *pTo)
{
- writeData(TQString(".Tm%1:%2:%3:%4").tqarg(trade ? trade->tradeId() : -1).tqarg(pFrom ? pFrom->id() : -1).tqarg(pTo ? pTo->id() : -1).tqarg(money));
+ writeData(TQString(".Tm%1:%2:%3:%4").arg(trade ? trade->tradeId() : -1).arg(pFrom ? pFrom->id() : -1).arg(pTo ? pTo->id() : -1).arg(money));
}
void AtlantikNetwork::tradeReject(Trade *trade)
{
- writeData(TQString(".Tr%1").tqarg(trade ? trade->tradeId() : -1));
+ writeData(TQString(".Tr%1").arg(trade ? trade->tradeId() : -1));
}
void AtlantikNetwork::tradeAccept(Trade *trade)
{
- writeData(TQString(".Ta%1:%2").tqarg(trade ? trade->tradeId() : -1).tqarg(trade ? trade->revision() : -1));
+ writeData(TQString(".Ta%1:%2").arg(trade ? trade->tradeId() : -1).arg(trade ? trade->revision() : -1));
}
void AtlantikNetwork::auctionBid(Auction *auction, int amount)
{
- writeData(TQString(".ab%1:%2").tqarg(auction ? auction->auctionId() : -1).tqarg(amount));
+ writeData(TQString(".ab%1:%2").arg(auction ? auction->auctionId() : -1).arg(amount));
}
void AtlantikNetwork::setImage(const TQString &name)
{
- writeData(TQString(".pi%1").tqarg(name));
+ writeData(TQString(".pi%1").arg(name));
}
void AtlantikNetwork::jailPay()
@@ -190,7 +190,7 @@ void AtlantikNetwork::jailCard()
void AtlantikNetwork::changeOption(int configId, const TQString &value)
{
- writeData( TQString(".gc%1:%2").tqarg(configId).tqarg(value) );
+ writeData( TQString(".gc%1:%2").arg(configId).arg(value) );
}
void AtlantikNetwork::writeData(TQString msg)
@@ -607,7 +607,7 @@ void AtlantikNetwork::processNode(TQDomNode n)
Estate *estate = 0;
bool b_newEstate = false;
- // FIXME: allow any estateId, GUI should not use it to determin its tqgeometry
+ // FIXME: allow any estateId, GUI should not use it to determin its geometry
if (estateId >= 0 && estateId < 100 && !(estate = m_atlanticCore->findEstate(a.value().toInt())))
{
// Create estate object
@@ -906,7 +906,7 @@ void AtlantikNetwork::serverConnect(const TQString host, int port)
{
setAddress(host, port);
enableRead(true);
- emit msgStatus(i18n("Connecting to %1:%2...").tqarg(host).tqarg(TQString::number(port)), "connect_creating");
+ emit msgStatus(i18n("Connecting to %1:%2...").arg(host).arg(TQString::number(port)), "connect_creating");
startAsyncConnect();
}
@@ -917,12 +917,12 @@ void AtlantikNetwork::slotLookupFinished(int count)
void AtlantikNetwork::slotConnectionSuccess()
{
- emit msgStatus(i18n("Connected to %1:%2.").tqarg(host()).tqarg(port()), "connect_established");
+ emit msgStatus(i18n("Connected to %1:%2.").arg(host()).arg(port()), "connect_established");
}
void AtlantikNetwork::slotConnectionFailed(int error)
{
- emit msgStatus(i18n("Connection failed! Error code: %1").tqarg(error), "connect_no");
+ emit msgStatus(i18n("Connection failed! Error code: %1").arg(error), "connect_no");
}
#include "atlantik_network.moc"