Move project in sub
This commit is contained in:
parent
f868166756
commit
ec1af1b8e5
43 changed files with 358 additions and 2 deletions
|
|
@ -1,33 +0,0 @@
|
|||
#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_entity> _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_entity> cargo();
|
||||
|
||||
void serialize(QDataStream &output);
|
||||
void deserialize(QDataStream &input);
|
||||
static void preloadGlobalId(entity_id gid);
|
||||
static entity_id GID();
|
||||
};
|
||||
|
||||
#endif // VESSEL_ENTITY_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue