25 lines
462 B
C++
25 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_ */
|