~ubuntu-branches/ubuntu/jaunty/kdegames/jaunty-backports

« back to all changes in this revision

Viewing changes to ksirk/ksirk/GameLogic/gameautomaton.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2008-07-12 19:00:07 UTC
  • mfrom: (1.2.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20080712190007-z0itmj9r736o8vng
Tags: 4:4.0.98-0ubuntu1
* New upstream release candidate
* Bump Standards-Version to 3.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
{
207
207
  kDebug() << "new state (id=" << state << ") is " << GameStateNames[state] << endl;
208
208
  m_state = state;
 
209
  m_game->setSaveGameActionEnabled(m_state == WAIT);
209
210
  QByteArray buffer;
210
211
  QDataStream stream(&buffer, QIODevice::WriteOnly);
211
212
  stream << state;
774
775
          || m_currentPlayerPlayed  
775
776
          || (KMessageBox::questionYesNo (m_game,
776
777
                i18n("%1, you have not played anything this turn.\nDo you really want to lose your turn ?",m_currentPlayer),
777
 
                "Really Next Player ?") == KMessageBox::Yes) )
 
778
                i18n("Really Next Player ?")) == KMessageBox::Yes) )
778
779
      {
779
780
        QByteArray buffer;
780
781
        QDataStream stream(&buffer, QIODevice::WriteOnly);
1021
1022
/** returns the name of the current state */
1022
1023
QString GameAutomaton::stateName() const
1023
1024
{
1024
 
  if (m_state < 0 
1025
 
      || (unsigned int)(m_state) >= sizeof(GameStateNames))
 
1025
  if ((size_t)(m_state) >= sizeof(GameStateNames))
1026
1026
  {
1027
1027
    ::std::ostringstream oss;
1028
1028
    oss << "Invalid stored state id: " << m_state;