blob: 0f264670b354b0e80d289665f86bcda7342076d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include "Tile_SPU.h"
class CactusTile_SPU : public Tile_SPU
{
public:
CactusTile_SPU(int id) : Tile_SPU(id) {}
virtual Icon_SPU *getTexture(int face, int data)
{
if (face == Facing::UP) return &ms_pTileData->cactusTile_iconTop;
if (face == Facing::DOWN) return &ms_pTileData->cactusTile_iconBottom;
else return icon();
}
virtual bool isCubeShaped() { return false; }
virtual bool isSolidRender(bool isServerLevel = false) { return false;}
virtual int getRenderShape() { return Tile_SPU::SHAPE_CACTUS; }
};
|