SDL_Game_CPP git · main
SDL game in C++
C++ 99.3%git clone https://git.christianimmanuel.de/sdl-graphics/SDL_Game_CPP.gitwget https://git.christianimmanuel.de/sdl-graphics/SDL_Game_CPP/archive/SDL_Game_CPP.tar.gzsrc/resource/resource.cpp raw
#include "resource/resource.hpp"
#include "inventory/item.hpp"
bool Resource::is_Collectable(ItemType item = ItemType::HAND) {
if ( collecting_methode == CollectingMethode::HAND)
return true;
if (collecting_methode == CollectingMethode::PICKAXE_STONE && item == ItemType::PICKAXE_STONE)
return true;
return false;
}