Skip to content
Permalink
911e26a55e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
33 lines (25 sloc) 451 Bytes
#pragma once
#include "ItemID.h"
#include <iostream>
#include <string>
namespace temp
{
class Object
{
public:
Object(int hp);
virtual void damage(int dmg);
#define IMPLEMENT_ITEM_NAME(_name) std::string name() override {return #_name;}
class Item
{
public:
virtual ~Item();
virtual void use(temp::GameObject* target) = 0;
virtual ItemID id() = 0;
private:
{}
}
private:
int m_hp;
};
};