21 lines
333 B
C
21 lines
333 B
C
|
#ifndef BLOCK_H
|
||
|
#define BLOCK_H
|
||
|
|
||
|
#include <QObject>
|
||
|
|
||
|
class Block
|
||
|
{
|
||
|
public:
|
||
|
Block();
|
||
|
Block(uint16_t);
|
||
|
Block(const Block&);
|
||
|
bool operator ==(Block);
|
||
|
bool operator !=(Block);
|
||
|
uint16_t tile:10;
|
||
|
uint16_t collision:2;
|
||
|
uint16_t elevation:4;
|
||
|
uint16_t rawValue();
|
||
|
};
|
||
|
|
||
|
#endif // BLOCK_H
|