Merge pull request #19 from VanNostrand/documentation
Documentation-Branch v2
This commit is contained in:
commit
6d69fe728a
18 changed files with 29 additions and 23 deletions
|
@ -89,4 +89,4 @@ public:
|
||||||
static PendingCommand *prepareAdminCommand(const ::google::protobuf::Message &cmd);
|
static PendingCommand *prepareAdminCommand(const ::google::protobuf::Message &cmd);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -32,4 +32,4 @@ public:
|
||||||
void removeArrowTo(ArrowItem *arrow) { arrowsTo.removeAt(arrowsTo.indexOf(arrow)); }
|
void removeArrowTo(ArrowItem *arrow) { arrowsTo.removeAt(arrowsTo.indexOf(arrow)); }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -50,4 +50,4 @@ signals:
|
||||||
void deleteCardInfoPopup(QString cardName);
|
void deleteCardInfoPopup(QString cardName);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,4 +26,4 @@ Q_DECLARE_METATYPE(QList<ServerInfo_User>)
|
||||||
Q_DECLARE_METATYPE(Event_ReplayAdded)
|
Q_DECLARE_METATYPE(Event_ReplayAdded)
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -14,4 +14,4 @@ public:
|
||||||
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -21,4 +21,4 @@ public:
|
||||||
QSet<QString> getCardColors() const;
|
QSet<QString> getCardColors() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
|
|
||||||
typedef QMap<int, QString> GameTypeMap;
|
typedef QMap<int, QString> GameTypeMap;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -18,4 +18,4 @@ private slots:
|
||||||
void itemFromServer(const ServerMessage &item);
|
void itemFromServer(const ServerMessage &item);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -20,4 +20,4 @@ public slots:
|
||||||
void itemFromClient(const CommandContainer &item);
|
void itemFromClient(const CommandContainer &item);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -35,4 +35,4 @@ public:
|
||||||
AbstractCounter *addCounter(int _counterId, const QString &_name, int _value);
|
AbstractCounter *addCounter(int _counterId, const QString &_name, int _value);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -31,4 +31,4 @@ public slots:
|
||||||
|
|
||||||
extern SoundEngine *soundEngine;
|
extern SoundEngine *soundEngine;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -46,4 +46,4 @@ public:
|
||||||
bool getLocked() const { return locked; }
|
bool getLocked() const { return locked; }
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -24,4 +24,4 @@ public slots:
|
||||||
void updateInfo(const QString &userName);
|
void updateInfo(const QString &userName);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -92,4 +92,4 @@ public:
|
||||||
void sortItems();
|
void sortItems();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -32,4 +32,4 @@ inline color makeColor(int r, int g, int b)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -7,4 +7,4 @@ class Server_ArrowTarget : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Binary file not shown.
|
@ -194,13 +194,20 @@ Start the oracle.exe (the installer does this automatically) and let it generate
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
Congratulations, you may now use Cockatrice!
|
Congratulations, you may now use Cockatrice!
|
||||||
|
|
||||||
\subsubsection{Install latest experimental on Linux}
|
\subsubsection{Linux and BSD}
|
||||||
|
The following procedures have been tested with Debian Wheezy, Fedora 18 and FreeBSD 9.1.
|
||||||
|
If you use Gentoo with KDE you have the needed prerequisites and may continue with downloading the source.
|
||||||
|
If you use Bodhi or Arch Linux (AUR) or another distribution that includes Cockatrice, you might install Cockatrice from the default packages -- though the package might be old,
|
||||||
|
so you probably should continue with this howto.
|
||||||
|
|
||||||
|
Before you install new software, you should update your system. The following instructions failed on a fresh installation of Fedora 18 and FreeBSD 9.1 until the systems were updated.
|
||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
\item You need to install the build tools and dependencies. This varies between the Linux distributions.
|
\item You need to install the build tools and dependencies. This varies between the Linux distributions.
|
||||||
\begin{description}
|
\begin{description}
|
||||||
\item[Ubuntu] \shellcmd{sudo apt-get install build-essential git libqt4-dev qtmobility-dev libprotobuf-dev protobuf-compiler cmake}
|
\item[Debian, Ubuntu and spin-offs] \shellcmd{sudo apt-get install build-essential git libqt4-dev qtmobility-dev libprotobuf-dev protobuf-compiler cmake}
|
||||||
\item[Fedora] \shellcmd{sudo yum groupinstall "Development Tools"\\
|
\item[Fedora] \shellcmd{sudo yum groupinstall "Development Tools"\\
|
||||||
yum install qt-devel qt-mobility-devel protobuf-devel protobuf-compiler cmake}
|
yum install qt-devel qt-mobility-devel protobuf-devel protobuf-compiler cmake}
|
||||||
|
\item[FreeBSD] \shellcmd{pkg\_add -r qt4 qt4-linguist qt4-moc qt4-qmake qt4-rcc qt4-uic git cmake protobuf}
|
||||||
\end{description}
|
\end{description}
|
||||||
\item Download the sources from github via \\ \shellcmd{cd\\ git clone https://github.com/Daenyth/Cockatrice.git}
|
\item Download the sources from github via \\ \shellcmd{cd\\ git clone https://github.com/Daenyth/Cockatrice.git}
|
||||||
\item To compile the sources, change into the newly created directory, create a build directory and invoke cmake:\\
|
\item To compile the sources, change into the newly created directory, create a build directory and invoke cmake:\\
|
||||||
|
@ -208,12 +215,11 @@ Congratulations, you may now use Cockatrice!
|
||||||
mkdir build \\
|
mkdir build \\
|
||||||
cd build \\
|
cd build \\
|
||||||
cmake ..\\
|
cmake ..\\
|
||||||
make\\
|
make}\\
|
||||||
sudo make install
|
|
||||||
}\\
|
|
||||||
If you have some issues with pthread\_* add 'pthread' to the ``target\_link\_libraries'' entry in the \shellcmd{CMakeFiles.txt} in \shellcmd{Cockatrice/common}.
|
If you have some issues with pthread\_* add 'pthread' to the ``target\_link\_libraries'' entry in the \shellcmd{CMakeFiles.txt} in \shellcmd{Cockatrice/common}.
|
||||||
|
\item You may install the program into the directory \shellcmd{/usr/local} by typing \shellcmd{sudo make install} but you should also be able to start
|
||||||
\item Finish up the installation: Run \shellcmd{oracle} and download available cards, denn run \shellcmd{cockatrice}.
|
cockatrice and the oracle from the build directory.
|
||||||
|
\item Before you start Cockatrice for the first time, run \shellcmd{oracle -dlsets} and download available cards, denn run \shellcmd{cockatrice}.
|
||||||
The default paths for decks, pics, cards and tokens are located in \\ \shellcmd{/home/<user>/.local/share/data/Cockatrice/Cockatrice}.
|
The default paths for decks, pics, cards and tokens are located in \\ \shellcmd{/home/<user>/.local/share/data/Cockatrice/Cockatrice}.
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue