blob: c2ff2532cf747e9e3b934c09e49d2a3770422d93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include "StarItem.hpp"
#include "StarFireableItem.hpp"
#include "StarBeamItem.hpp"
namespace Star {
STAR_CLASS(ObjectItem);
class ObjectItem : public Item, public FireableItem, public BeamItem {
public:
ObjectItem(Json const& config, String const& directory, Json const& objectParameters);
virtual ~ObjectItem() {}
ItemPtr clone() const override;
void init(ToolUserEntity* owner, ToolHand hand) override;
void update(float dt, FireMode fireMode, bool shifting, HashSet<MoveControlType> const& moves) override;
List<Drawable> nonRotatedDrawables() const override;
float cooldownTime() const override;
void fire(FireMode mode, bool shifting, bool edgeTriggered) override;
String objectName() const;
Json objectParameters() const;
bool placeInWorld(FireMode mode, bool shifting);
bool canPlace(bool shifting) const;
private:
bool m_shifting;
};
}
|