You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdegames/klickety/piece.h

43 lines
1.2 KiB

#ifndef KL_PIECE_H
#define KL_PIECE_H
#include "base/piece.h"
class KLPieceInfo : public GPieceInfo
{
public:
KLPieceInfo() {}
virtual uint nbBlocks() const { return 0; }
virtual uint nbTypes() const { return NB_BLOCK_TYPES; }
virtual uint nbForms() const { return 0; }
virtual const int *i(uint, uint) const { return 0; }
virtual const int *j(uint, uint) const { return 0; }
virtual uint value(uint, uint) const { return 0; }
virtual uint form(uint) const { return 0; }
virtual uint nbConfigurations(uint) const { return 0; }
virtual uint nbNormalBlockTypes() const { return NB_BLOCK_TYPES; }
virtual uint nbGarbageBlockTypes() const { return 0; }
virtual uint nbBlockModes() const { return 1+4+6+4+1; }
virtual uint nbColors() const { return NB_BLOCK_TYPES; }
virtual TQString colorLabel(uint i) const;
virtual TQColor defaultColor(uint i) const;
protected:
void draw(TQPixmap *, uint blockType, uint blockMode,
bool lighted) const;
private:
static const uint NB_BLOCK_TYPES = 5;
static const char *DEFAULT_COLORS[NB_BLOCK_TYPES];
};
#endif