forked from pieeebot/cafeberry
32 lines
738 B
C++
32 lines
738 B
C++
#pragma once
|
|
|
|
#include "RotatedPillarTile_SPU.h"
|
|
|
|
class Player;
|
|
|
|
class TreeTile_SPU : public RotatedPillarTile_SPU
|
|
{
|
|
public:
|
|
static const int DARK_TRUNK = 1;
|
|
static const int BIRCH_TRUNK = 2;
|
|
static const int JUNGLE_TRUNK = 3;
|
|
|
|
static const int MASK_TYPE = 0x3;
|
|
static const int MASK_FACING = 0xC;
|
|
static const int FACING_Y = 0 << 2;
|
|
static const int FACING_X = 1 << 2;
|
|
static const int FACING_Z = 2 << 2;
|
|
|
|
static const int TREE_NAMES_LENGTH = 4;
|
|
|
|
TreeTile_SPU(int id) : RotatedPillarTile_SPU(id) {}
|
|
|
|
public:
|
|
Icon_SPU *getTypeTexture(int type) {
|
|
return &ms_pTileData->treeTile_icons_side[type];
|
|
};
|
|
|
|
Icon_SPU *getTopTexture(int type) {
|
|
return &ms_pTileData->treeTile_icons_top[type];
|
|
};
|
|
}; |