the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "Item.h"
4
5class Player;
6class Level;
7
8class BowItem : public Item
9{
10public:
11 static const wstring TEXTURE_PULL[];
12 static const int MAX_DRAW_DURATION = 20 * 1;
13
14private:
15 static const int BOW_ICONS_COUNT = 3;
16 Icon **icons;
17
18public:
19 BowItem(int id);
20
21 virtual void releaseUsing(shared_ptr<ItemInstance> itemInstance, Level *level, shared_ptr<Player> player, int durationLeft);
22 virtual shared_ptr<ItemInstance> useTimeDepleted(shared_ptr<ItemInstance> instance, Level *level, shared_ptr<Player> player);
23 virtual int getUseDuration(shared_ptr<ItemInstance> itemInstance);
24 virtual UseAnim getUseAnimation(shared_ptr<ItemInstance> itemInstance);
25 virtual shared_ptr<ItemInstance> use(shared_ptr<ItemInstance> instance, Level *level, shared_ptr<Player> player);
26 virtual int getEnchantmentValue();
27
28 //@Override
29 void registerIcons(IconRegister *iconRegister);
30 Icon *getDrawnIcon(int amount);
31};