#ifndef VESSEL_ENTITY_H #define VESSEL_ENTITY_H #include "IEntity.h" #include "cargo_entity.h" #include "dpoint_entity.h" class vessel_entity : public IEntity { private: static entity_id __global_id; entity_id _id; dpoint_entity _harbor; unsigned int _capacity; QVector _cargo; public: vessel_entity() = default; vessel_entity(const dpoint_entity &harbor, unsigned int capacity); entity_id id(); const dpoint_entity harbor(); unsigned int capacity(); const QVector cargo(); void serialize(QDataStream &output); void deserialize(QDataStream &input); static void preloadGlobalId(entity_id gid); }; #endif // VESSEL_ENTITY_H