// This file is generated by kconfig_compiler_kf5 from kspaceduel.kcfg.
// All changes you do to this file will be lost.
#ifndef OPTIONS_H
#define OPTIONS_H

#include <kconfigskeleton.h>
#include <QCoreApplication>
#include <QDebug>

class Options : public KConfigSkeleton
{
  public:
    class EnumAiDifficulty
    {
      public:
      enum type { Trainee, Normal, Hard, Insane, COUNT };
    };

    static Options *self();
    ~Options();


    /**
      Get timeAfterKill
    */
    static
    double timeAfterKill()
    {
      return self()->mTimeAfterKill;
    }


    /**
      Get startHitPointsP$(Player)
    */
    static
    int startHitPoints( int i )
    {
      return self()->mStartHitPoints[i];
    }


    /**
      Get player$(Player)IsAi
    */
    static
    bool playerIsAi( int i )
    {
      return self()->mPlayerIsAi[i];
    }


    /**
      Get ai$(Player)Difficulty
    */
    static
    int aiDifficulty( int i )
    {
      return self()->mAiDifficulty[i];
    }

    /**
      Set lastConfig
    */
    static
    void setLastConfig( int v )
    {
      if (!self()->isImmutable( QStringLiteral( "LastConfig" ) ))
        self()->mLastConfig = v;
    }

    /**
      Get lastConfig
    */
    static
    int lastConfig()
    {
      return self()->mLastConfig;
    }


    /**
      Get refreshTime
    */
    static
    int refreshTime()
    {
      return self()->mRefreshTime;
    }

  protected:
    Options();
    friend class OptionsHelper;


    // Game
    double mTimeAfterKill;
    int mStartHitPoints[2];
    bool mPlayerIsAi[2];
    int mAiDifficulty[2];
    int mLastConfig;
    int mRefreshTime;

  private:
};

#endif

