v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
32
source/game/items/StarThrownItem.hpp
Normal file
32
source/game/items/StarThrownItem.hpp
Normal file
|
@ -0,0 +1,32 @@
|
|||
#ifndef STAR_THROWN_ITEM_HPP
|
||||
#define STAR_THROWN_ITEM_HPP
|
||||
|
||||
#include "StarItem.hpp"
|
||||
#include "StarDrawable.hpp"
|
||||
#include "StarSwingableItem.hpp"
|
||||
#include "StarPreviewableItem.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
class ThrownItem : public Item, public SwingableItem, public PreviewableItem {
|
||||
public:
|
||||
ThrownItem(Json const& config, String const& directory, Json const& itemParameters = JsonObject());
|
||||
|
||||
ItemPtr clone() const override;
|
||||
|
||||
List<Drawable> drawables() const override;
|
||||
List<Drawable> preview(PlayerPtr const& viewer = {}) const override;
|
||||
|
||||
protected:
|
||||
void fireTriggered() override;
|
||||
|
||||
private:
|
||||
String m_projectileType;
|
||||
Json m_projectileConfig;
|
||||
size_t m_ammoUsage;
|
||||
List<Drawable> m_drawables;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue