porymap/include/core/block.h

24 lines
460 B
C
Raw Normal View History

2020-09-13 23:37:55 +01:00
#pragma once
#ifndef BLOCK_H
#define BLOCK_H
#include <QObject>
class Block
{
public:
Block();
Block(uint16_t);
Block(uint16_t metatileId, uint16_t collision, uint16_t elevation);
2021-02-14 17:37:51 +00:00
Block(const Block &);
Block &operator=(const Block &);
bool operator ==(Block) const;
bool operator !=(Block) const;
uint16_t metatileId:10;
uint16_t collision:2;
uint16_t elevation:4;
uint16_t rawValue() const;
};
#endif // BLOCK_H