From 4dbd5acab9f56b59a38d2aa6bd31fbf20c6cbf94 Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Sun, 16 May 2021 21:01:36 -0700 Subject: [PATCH] Moved code from card to poker --- include/dawn/dawn.h | 4 ++-- include/dawn/{cards => poker}/card.h | 0 include/dawn/{cards => }/poker/holdem.h | 12 ++++++------ src/game/game.h | 2 +- src/{card => poker}/action/action.c | 0 src/{card => poker}/action/action.h | 0 src/{card => poker}/action/ai.c | 0 src/{card => poker}/action/ai.h | 0 src/{card => poker}/action/deal.c | 0 src/{card => poker}/action/deal.h | 0 src/{card => poker}/action/flop.c | 0 src/{card => poker}/action/flop.h | 0 src/{card => poker}/action/round.c | 0 src/{card => poker}/action/round.h | 0 src/{card => poker}/action/shuffle.c | 0 src/{card => poker}/action/shuffle.h | 0 src/{card => poker}/action/start.c | 0 src/{card => poker}/action/start.h | 0 src/{card => poker}/card.c | 0 src/{card => poker}/card.h | 0 src/{card => poker}/holdemgame.c | 0 src/{card => poker}/holdemgame.h | 0 src/{card => poker}/model/pokertable.c | 0 src/{card => poker}/model/pokertable.h | 0 src/{card => poker}/render/card.c | 0 src/{card => poker}/render/card.h | 0 src/{card => poker}/render/frame.c | 0 src/{card => poker}/render/frame.h | 0 src/{card => poker}/render/look.c | 0 src/{card => poker}/render/look.h | 0 src/{card => poker}/render/player.c | 0 src/{card => poker}/render/player.h | 0 src/{card => poker}/render/scene.c | 0 src/{card => poker}/render/scene.h | 0 src/{card => poker}/render/world.c | 0 src/{card => poker}/render/world.h | 0 36 files changed, 9 insertions(+), 9 deletions(-) rename include/dawn/{cards => poker}/card.h (100%) rename include/dawn/{cards => }/poker/holdem.h (95%) rename src/{card => poker}/action/action.c (100%) rename src/{card => poker}/action/action.h (100%) rename src/{card => poker}/action/ai.c (100%) rename src/{card => poker}/action/ai.h (100%) rename src/{card => poker}/action/deal.c (100%) rename src/{card => poker}/action/deal.h (100%) rename src/{card => poker}/action/flop.c (100%) rename src/{card => poker}/action/flop.h (100%) rename src/{card => poker}/action/round.c (100%) rename src/{card => poker}/action/round.h (100%) rename src/{card => poker}/action/shuffle.c (100%) rename src/{card => poker}/action/shuffle.h (100%) rename src/{card => poker}/action/start.c (100%) rename src/{card => poker}/action/start.h (100%) rename src/{card => poker}/card.c (100%) rename src/{card => poker}/card.h (100%) rename src/{card => poker}/holdemgame.c (100%) rename src/{card => poker}/holdemgame.h (100%) rename src/{card => poker}/model/pokertable.c (100%) rename src/{card => poker}/model/pokertable.h (100%) rename src/{card => poker}/render/card.c (100%) rename src/{card => poker}/render/card.h (100%) rename src/{card => poker}/render/frame.c (100%) rename src/{card => poker}/render/frame.h (100%) rename src/{card => poker}/render/look.c (100%) rename src/{card => poker}/render/look.h (100%) rename src/{card => poker}/render/player.c (100%) rename src/{card => poker}/render/player.h (100%) rename src/{card => poker}/render/scene.c (100%) rename src/{card => poker}/render/scene.h (100%) rename src/{card => poker}/render/world.c (100%) rename src/{card => poker}/render/world.h (100%) diff --git a/include/dawn/dawn.h b/include/dawn/dawn.h index f1a721b1..265a72e3 100644 --- a/include/dawn/dawn.h +++ b/include/dawn/dawn.h @@ -32,8 +32,8 @@ #include "input/input.h" // Poker Game Logic -#include "cards/card.h" -#include "cards/poker/holdem.h" +#include "poker/card.h" +#include "poker/holdem.h" // Utility Objects #include "util/list.h" diff --git a/include/dawn/cards/card.h b/include/dawn/poker/card.h similarity index 100% rename from include/dawn/cards/card.h rename to include/dawn/poker/card.h diff --git a/include/dawn/cards/poker/holdem.h b/include/dawn/poker/holdem.h similarity index 95% rename from include/dawn/cards/poker/holdem.h rename to include/dawn/poker/holdem.h index 8dd2e9c9..e4cfd56a 100644 --- a/include/dawn/cards/poker/holdem.h +++ b/include/dawn/poker/holdem.h @@ -6,12 +6,12 @@ */ #pragma once -#include "../card.h" -#include "../../display/render.h" -#include "../../display/spritebatch.h" -#include "../../display/texture.h" -#include "../../display/tileset.h" -#include "../../display/framebuffer.h" +#include "card.h" +#include "../display/render.h" +#include "../display/spritebatch.h" +#include "../display/texture.h" +#include "../display/tileset.h" +#include "../display/framebuffer.h" /** How many cards a player can hold in their hand */ #define HOLDEM_PLAYER_HAND 2 diff --git a/src/game/game.h b/src/game/game.h index 9a86d605..a6a6d805 100644 --- a/src/game/game.h +++ b/src/game/game.h @@ -11,7 +11,7 @@ #include "../display/shader.h" #include "../file/asset.h" #include "../input/input.h" -#include "../card/holdemgame.h" +#include "../poker/holdemgame.h" #include "../debug/log.h" /** diff --git a/src/card/action/action.c b/src/poker/action/action.c similarity index 100% rename from src/card/action/action.c rename to src/poker/action/action.c diff --git a/src/card/action/action.h b/src/poker/action/action.h similarity index 100% rename from src/card/action/action.h rename to src/poker/action/action.h diff --git a/src/card/action/ai.c b/src/poker/action/ai.c similarity index 100% rename from src/card/action/ai.c rename to src/poker/action/ai.c diff --git a/src/card/action/ai.h b/src/poker/action/ai.h similarity index 100% rename from src/card/action/ai.h rename to src/poker/action/ai.h diff --git a/src/card/action/deal.c b/src/poker/action/deal.c similarity index 100% rename from src/card/action/deal.c rename to src/poker/action/deal.c diff --git a/src/card/action/deal.h b/src/poker/action/deal.h similarity index 100% rename from src/card/action/deal.h rename to src/poker/action/deal.h diff --git a/src/card/action/flop.c b/src/poker/action/flop.c similarity index 100% rename from src/card/action/flop.c rename to src/poker/action/flop.c diff --git a/src/card/action/flop.h b/src/poker/action/flop.h similarity index 100% rename from src/card/action/flop.h rename to src/poker/action/flop.h diff --git a/src/card/action/round.c b/src/poker/action/round.c similarity index 100% rename from src/card/action/round.c rename to src/poker/action/round.c diff --git a/src/card/action/round.h b/src/poker/action/round.h similarity index 100% rename from src/card/action/round.h rename to src/poker/action/round.h diff --git a/src/card/action/shuffle.c b/src/poker/action/shuffle.c similarity index 100% rename from src/card/action/shuffle.c rename to src/poker/action/shuffle.c diff --git a/src/card/action/shuffle.h b/src/poker/action/shuffle.h similarity index 100% rename from src/card/action/shuffle.h rename to src/poker/action/shuffle.h diff --git a/src/card/action/start.c b/src/poker/action/start.c similarity index 100% rename from src/card/action/start.c rename to src/poker/action/start.c diff --git a/src/card/action/start.h b/src/poker/action/start.h similarity index 100% rename from src/card/action/start.h rename to src/poker/action/start.h diff --git a/src/card/card.c b/src/poker/card.c similarity index 100% rename from src/card/card.c rename to src/poker/card.c diff --git a/src/card/card.h b/src/poker/card.h similarity index 100% rename from src/card/card.h rename to src/poker/card.h diff --git a/src/card/holdemgame.c b/src/poker/holdemgame.c similarity index 100% rename from src/card/holdemgame.c rename to src/poker/holdemgame.c diff --git a/src/card/holdemgame.h b/src/poker/holdemgame.h similarity index 100% rename from src/card/holdemgame.h rename to src/poker/holdemgame.h diff --git a/src/card/model/pokertable.c b/src/poker/model/pokertable.c similarity index 100% rename from src/card/model/pokertable.c rename to src/poker/model/pokertable.c diff --git a/src/card/model/pokertable.h b/src/poker/model/pokertable.h similarity index 100% rename from src/card/model/pokertable.h rename to src/poker/model/pokertable.h diff --git a/src/card/render/card.c b/src/poker/render/card.c similarity index 100% rename from src/card/render/card.c rename to src/poker/render/card.c diff --git a/src/card/render/card.h b/src/poker/render/card.h similarity index 100% rename from src/card/render/card.h rename to src/poker/render/card.h diff --git a/src/card/render/frame.c b/src/poker/render/frame.c similarity index 100% rename from src/card/render/frame.c rename to src/poker/render/frame.c diff --git a/src/card/render/frame.h b/src/poker/render/frame.h similarity index 100% rename from src/card/render/frame.h rename to src/poker/render/frame.h diff --git a/src/card/render/look.c b/src/poker/render/look.c similarity index 100% rename from src/card/render/look.c rename to src/poker/render/look.c diff --git a/src/card/render/look.h b/src/poker/render/look.h similarity index 100% rename from src/card/render/look.h rename to src/poker/render/look.h diff --git a/src/card/render/player.c b/src/poker/render/player.c similarity index 100% rename from src/card/render/player.c rename to src/poker/render/player.c diff --git a/src/card/render/player.h b/src/poker/render/player.h similarity index 100% rename from src/card/render/player.h rename to src/poker/render/player.h diff --git a/src/card/render/scene.c b/src/poker/render/scene.c similarity index 100% rename from src/card/render/scene.c rename to src/poker/render/scene.c diff --git a/src/card/render/scene.h b/src/poker/render/scene.h similarity index 100% rename from src/card/render/scene.h rename to src/poker/render/scene.h diff --git a/src/card/render/world.c b/src/poker/render/world.c similarity index 100% rename from src/card/render/world.c rename to src/poker/render/world.c diff --git a/src/card/render/world.h b/src/poker/render/world.h similarity index 100% rename from src/card/render/world.h rename to src/poker/render/world.h