This repository has been archived on 2019-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
dungeon-gunner/source/items/Item.h

27 lines
488 B
C
Raw Normal View History

2013-07-14 19:56:44 +00:00
/*
* Item.h
*
* Created on: 13.07.2013
* Author: Felix
*/
#ifndef DG_ITEM_H_
#define DG_ITEM_H_
#include "../abstract/Sprite.h"
class World;
class Item : public Sprite {
public:
Item(const Vector2f& size, const std::string& texture);
2013-07-14 19:56:44 +00:00
virtual ~Item() {};
virtual std::string getName() const = 0;
void drop(const Vector2f& position);
2013-07-14 19:56:44 +00:00
bool testCollision(std::shared_ptr<Sprite> other,
Vector2f& offsetFirst, const Vector2f& offsetSecond);
2013-07-14 19:56:44 +00:00
};
#endif /* DG_ITEM_H_ */