qmlfrontend/game_config.h
author Wuzzy <Wuzzy2@mail.ru>
Sat, 10 Nov 2018 20:58:00 +0100
changeset 14195 43ca01d4fb46
parent 14154 8354b390f1a2
child 14273 645e4591361f
permissions -rw-r--r--
Remove unused/out-commented "Structure" strings in engine locale files

#ifndef GAMECONFIG_H
#define GAMECONFIG_H

#include <QList>
#include <QVector>

#include "team.h"

class GameConfig {
 public:
  explicit GameConfig();

  const char** argv() const;
  int argc() const;
  const QList<QByteArray> config() const;

  void clear();
  void cmdSeed(const QByteArray& seed);
  void cmdTheme(const QByteArray& theme);
  void cmdMapgen(int mapgen);
  void cmdTeam(const Team& team);

  bool isPreview() const;
  void setPreview(bool isPreview);

 private:
  mutable QVector<const char*> m_argv;
  QList<QByteArray> m_arguments;
  QList<QByteArray> m_cfg;
  QList<Team> m_teams;
  bool m_isPreview;

  void cfgAppend(const QByteArray& cmd);
};

#endif  // GAMECONFIG_H