forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
24
src/world/item/ShovelItem.cpp
Executable file
24
src/world/item/ShovelItem.cpp
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#include "ShovelItem.h"
|
||||
#include "../level/tile/Tile.h"
|
||||
|
||||
ShovelItem::ShovelItem( int id, const Tier& tier )
|
||||
: super(id, 1, tier)
|
||||
{
|
||||
TileList d;
|
||||
d.push_back((Tile*)Tile::grass);
|
||||
d.push_back(Tile::dirt);
|
||||
d.push_back(Tile::sand);
|
||||
d.push_back(Tile::gravel);
|
||||
d.push_back(Tile::topSnow);
|
||||
d.push_back(Tile::snow);
|
||||
d.push_back(Tile::clay);
|
||||
d.push_back(Tile::farmland);
|
||||
|
||||
setTiles(d);
|
||||
}
|
||||
|
||||
bool ShovelItem::canDestroySpecial( const Tile* tile ) const {
|
||||
if (tile == Tile::topSnow) return true;
|
||||
if (tile == Tile::snow) return true;
|
||||
return false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue