diff --git a/cpp-base64 b/cpp-base64 deleted file mode 160000 index 6420804..0000000 --- a/cpp-base64 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6420804f7ba10e8c3049c6e3b59ec88c88d808a6 diff --git a/src/class/monster.cpp b/src/class/monster.cpp deleted file mode 100644 index ce6aff5..0000000 --- a/src/class/monster.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include "src/class/monster.hpp" - -Monster::Monster(std::string monsterName) - : Character(monsterName) -{ - bounty = 0; -} - -Monster::Monster(std::string monsterName, int monsterMaxHP, int monsterAtk, int monsterDef) - : Character(monsterName, monsterMaxHP, monsterAtk, monsterDef) -{ - bounty = 0; -} - -Monster::Monster(std::string monsterName, int monsterMaxHP, int monsterAtk, int monsterDef, int monsterBounty) - : Character(monsterName, monsterMaxHP, monsterAtk, monsterDef) -{ - bounty = monsterBounty; -} - -int Monster::getBounty() -{ - return bounty; -} \ No newline at end of file diff --git a/src/class/monster.hpp b/src/class/monster.hpp deleted file mode 100644 index 814813e..0000000 --- a/src/class/monster.hpp +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef HACKTHEGAME_MONSTER_HPP -#define HACKTHEGAME_MONSTER_HPP - -#include "src/class/character.hpp" - -class Monster : public Character -{ - protected: - int bounty; - - public: - Monster(std::string monsterName); - Monster(std::string monsterName, int monsterMaxHP, int monsterAtk, int monsterDef); - Monster(std::string monsterName, int monsterMaxHP, int monsterAtk, int monsterDef, int monsterBounty); - - int getBounty(); -}; - -#endif \ No newline at end of file diff --git a/src/interface/battle0.cpp b/src/interface/battle0.cpp deleted file mode 100644 index d2383a9..0000000 --- a/src/interface/battle0.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "src/interface/battle0.hpp" - -int startBattle(Player *player, Monster *monster) -{ - printf(" ===== BATTLE INFO ===== \n"); - - printf("%15s (Lv.%n):\n", player->getName(), player->getLevel()); - printf(" HP : %n/%n\n", player->getCurrentHP(), player->getMaxHP()); - printf(" Att: %n\n", player->getAtt()); - printf(" Def: %n\n", player->getDef()); - - printf("%15s:\n", monster->getName()); - printf(" HP : %n/%n\n", monster->getCurrentHP(), monster->getMaxHP()); - printf(" Att: %n\n", monster->getAtt()); - printf(" Def: %n\n", monster->getDef()); - - printf(" ===== BATTLE START ===== \n"); - while (player->isAlive() && monster->isAlive()) - { - printf("%15s and %15s attacked each other !!!\n", player->getName(), monster->getName()); - printf("%15s lose %d HP...\n", player->getName(), player->defend(monster->getAtt())); - printf("%15s lose %d HP...\n", monster->getName(), monster->defend(player->getAtt())); - } - - printf(" ===== BATTLE END ===== \n"); - if (player->isAlive()) - { - player->restoreHP(); - printf("YOU WIN !!!\n"); - return 1; - } - else - { - printf("YOU LOSE !!!\n"); - return 0; - } -} \ No newline at end of file diff --git a/src/interface/battle0.hpp b/src/interface/battle0.hpp deleted file mode 100644 index 11f3007..0000000 --- a/src/interface/battle0.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef HACKTHEGAME_BATTLESYSTEM_VERSION_000_HPP -#define HACKTHEGAME_BATTLESYSTEM_VERSION_000_HPP - -#include "src/class/monster.hpp" -#include "src/class/player.hpp" - -#include - -int startBattle(Player *player, Monster *monster); - -#endif \ No newline at end of file