Nimbin[12]?SDL & Graphics / SDL_Game_CPP / src/resource/resource.cpp

SDL_Game_CPP git · main

SDL game in C++

sdl game c++ · first commit 2026-03-24 · last commit 2026-03-24 (8 months ago) · synced 1 hour ago · upstream: codeberg.org/Studying_at_HsNR/SDL_Game_CPP

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.gz
src/resource/resource.cpp 347 B · 12 lines 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;
}