summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2015-09-28 15:06:06 +0200
committerAlbert Astals Cid <[email protected]>2015-09-28 15:06:06 +0200
commite80f8668f87354c6e92845cdf06bde71186627c2 (patch)
treecb2199fa6b09b32f4d7fa2d0d0c446f59e1ec6f9
parent7f9d784307f1db45e8573f241d174e37c4f902a5 (diff)
remove unused param
-rw-r--r--src/aientity.cpp2
-rw-r--r--src/controller.cpp2
-rw-r--r--src/controller.h2
-rw-r--r--src/entity.h2
-rw-r--r--src/playerentity.cpp2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/aientity.cpp b/src/aientity.cpp
index b6bc9f8..c8b7bde 100644
--- a/src/aientity.cpp
+++ b/src/aientity.cpp
@@ -69,7 +69,7 @@ void AIEntity::startPlacing()
{
m_seaview->setStatus(Sea::PLACING_SHIPS);
m_ai->setShips();
- emit shipsPlaced(m_player);
+ emit shipsPlaced();
}
void AIEntity::startPlaying()
diff --git a/src/controller.cpp b/src/controller.cpp
index c4d3aac..911aadc 100644
--- a/src/controller.cpp
+++ b/src/controller.cpp
@@ -232,7 +232,7 @@ void Controller::notify(Sea::Player player, const Coord& c, const HitInfo& info)
}
}
-void Controller::shipsPlaced(int player)
+void Controller::shipsPlaced()
{
m_ready++;
if (m_ready >= 2 )
diff --git a/src/controller.h b/src/controller.h
index da107e6..f11e7bf 100644
--- a/src/controller.h
+++ b/src/controller.h
@@ -62,7 +62,7 @@ public:
public slots:
void shoot(int player, const Coord& c);
void ready(int player);
- void shipsPlaced(int player);
+ void shipsPlaced();
void receivedChat(const QString& text);
void nick(int player, const QString& nick);
void notifyRestartPlacingShips(Sea::Player player);
diff --git a/src/entity.h b/src/entity.h
index 1d2b154..c4cde80 100644
--- a/src/entity.h
+++ b/src/entity.h
@@ -64,7 +64,7 @@ public:
virtual void setNick(const QString& nick);
signals:
void shoot(int player, const Coord& c);
- void shipsPlaced(int player);
+ void shipsPlaced();
void ready(int player);
void chat(const QString& text);
void nickChanged(int player, const QString& nickname);
diff --git a/src/playerentity.cpp b/src/playerentity.cpp
index e5852ba..f6b1ade 100644
--- a/src/playerentity.cpp
+++ b/src/playerentity.cpp
@@ -83,7 +83,7 @@ void PlayerEntity::action(Sea::Player player, const Coord& c)
}
}
else {
- emit shipsPlaced(m_player);
+ emit shipsPlaced();
}
}
}