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

26 lines
462 B
C++

/*
* 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 sf::Vector2f& size, const std::string& texture);
virtual ~Item() {};
void drop(const sf::Vector2f& position);
bool testCollision(std::shared_ptr<Sprite> other,
sf::Vector2f& offsetFirst, const sf::Vector2f& offsetSecond);
};
#endif /* DG_ITEM_H_ */