From 658ca6ae5c40dbeac50d9da635b6b256535d59f2 Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Santos Souza de Miranda Date: Mon, 16 Sep 2024 17:30:28 -0300 Subject: [PATCH] Started Creating the Game and it's Classes --- main.cpp | 79 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 main.cpp diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..18716d1 --- /dev/null +++ b/main.cpp @@ -0,0 +1,79 @@ +#include +#include +#include + +#define MAX_TURNS 30 +enum Objects{ + Acid, + Weed, + Speed, + Cocaine, + Ludes + + +}; +class Bags{ + public: + + int max_Number_Items; + std::vector items; + std::map> indexesMap; + + + + + void setCapacity(int size){ + this->max_Number_Items = size; + + }; + void addItem(Objects item){ + items.push_back(item); + + } + void addMultipleItems(Objects item, int n){ + for (int i = 0; i<= n;i++){ + items.push_back(item); + } + } + +}; + +class Basic_Trenchcoat: public Bags{ +public: + Basic_Trenchcoat(): Bags(){ + this->setCapacity(100); + + } +}; + +class Player{ + private: + int Money = 0; + Bags *inventory = new Basic_Trenchcoat; + +public: + + +}; + +class Game{ + private: + Player *player = new Player(); + int current_Turn = 0; + + + public: + void Run(){ + + }; + + +}; + + +int main() { + Game *main = new Game; + + + return 0; +}