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/Shield.h

31 lines
468 B
C
Raw Normal View History

2013-07-10 21:25:53 +00:00
/*
* Shield.h
*
* Created on: 06.07.2013
* Author: Felix
*/
#ifndef DG_SHIELD_H_
#define DG_SHIELD_H_
#include "Gadget.h"
class RotatingShield;
class Sprite;
class Shield : public Gadget {
2013-07-10 21:41:24 +00:00
public:
Shield();
2013-07-10 21:25:53 +00:00
protected:
void onUse(Character& character) override;
void onThink(int elapsed) override;
sf::Time getCooldownTime() override;
private:
Character* mCharacter;
std::shared_ptr<RotatingShield> mRotatingShield;
};
#endif /* DG_SHIELD_H_ */