mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 01:12:15 -07:00
Turn Card, Deck_List, Protocol, RNG, Server, Settings and Utility into libraries and remove cockatrice_common.
Took 6 hours 3 minutes Took 31 seconds
This commit is contained in:
parent
3cff55b0bb
commit
1e4e5a4419
593 changed files with 1913 additions and 1601 deletions
21
libcockatrice_rng/libcockatrice/rng/rng_abstract.h
Normal file
21
libcockatrice_rng/libcockatrice/rng/rng_abstract.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef RNG_ABSTRACT_H
|
||||
#define RNG_ABSTRACT_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QVector>
|
||||
|
||||
class RNG_Abstract : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit RNG_Abstract(QObject *parent = nullptr) : QObject(parent)
|
||||
{
|
||||
}
|
||||
virtual unsigned int rand(int min, int max) = 0;
|
||||
QVector<int> makeNumbersVector(int n, int min, int max);
|
||||
double testRandom(const QVector<int> &numbers) const;
|
||||
};
|
||||
|
||||
extern RNG_Abstract *rng;
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue