2018-11-19 09:40:44 +01:00
|
|
|
#ifndef SAPPHIRE_HOUSE_H
|
|
|
|
#define SAPPHIRE_HOUSE_H
|
|
|
|
|
|
|
|
#include "Forwards.h"
|
|
|
|
#include <Common.h>
|
|
|
|
#include <set>
|
|
|
|
#include <unordered_map>
|
|
|
|
|
|
|
|
namespace Core
|
|
|
|
{
|
|
|
|
|
|
|
|
class House
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
2018-11-19 10:32:58 +01:00
|
|
|
House( uint32_t houseId, uint32_t landSetId, uint8_t landId, uint8_t wardNum, uint16_t territoryTypeId );
|
2018-11-19 09:40:44 +01:00
|
|
|
virtual ~House();
|
|
|
|
|
|
|
|
//gerneral
|
2018-11-19 10:32:58 +01:00
|
|
|
uint32_t getLandSetId() const;
|
|
|
|
uint8_t getLandId() const;
|
|
|
|
uint8_t getWardNum() const;
|
|
|
|
uint16_t getTerritoryTypeId() const;
|
|
|
|
uint32_t getHouseId() const;
|
2018-11-19 09:40:44 +01:00
|
|
|
|
|
|
|
//functions
|
|
|
|
void setHousePart( Common::HousePartSlot slot, uint32_t id );
|
|
|
|
void setHousePartColor( Common::HousePartSlot slot, uint32_t id );
|
2018-11-19 10:32:58 +01:00
|
|
|
uint32_t getHousePart( Common::HousePartSlot slot ) const;
|
|
|
|
uint8_t getHousePartColor( Common::HousePartSlot slot ) const;
|
2018-11-19 09:40:44 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
uint32_t m_landSetId;
|
|
|
|
uint8_t m_landId;
|
|
|
|
uint8_t m_wardNum;
|
2018-11-19 10:32:58 +01:00
|
|
|
uint16_t m_territoryTypeId;
|
2018-11-19 09:40:44 +01:00
|
|
|
uint32_t m_houseId;
|
|
|
|
|
2018-11-19 12:03:24 +01:00
|
|
|
uint32_t m_houseParts[ 8 ];
|
|
|
|
uint8_t m_housePartsColor[ 8 ];
|
2018-11-19 09:40:44 +01:00
|
|
|
|
2018-11-19 12:03:24 +01:00
|
|
|
char m_commentMsg[ 193 ];
|
2018-11-19 09:40:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // SAPPHIRE_HOUSE_H
|