Something went wrong. Try again.
A card game engine for Magic: The Gathering inspired by Card Forge
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829#pragma once
#include <flecs.h>#include <map>#include "card.h"#include <vector>#include <string>#include "zone.h"#include <ctime>#include <cstdlib>#include <tuple>using namespace std;
class Game {private: flecs::world* world; map<CardDefId, Card> cards; uuids::uuid_random_generator* gen;public: Game(flecs::world* w, vector<string> playerNames, uuids::uuid_random_generator* g); Game() : Game(nullptr, vector<string>({}), nullptr) {} tuple<flecs::entity, vector<CardDefId>> setupTestData();private: void initPlayer(string name, flecs::entity entity); flecs::entity initZone(string name, flecs::entity owner, ZoneVisibility visibility, ZoneType zoneType);};
void setupRand();int randInt(int a, int b);