Const qualifiers for entities, there needed

This commit is contained in:
Andrew nuark G 2020-12-18 20:17:52 +07:00
parent cff62f91be
commit ee4b01713f
11 changed files with 27 additions and 27 deletions

View file

@ -7,15 +7,15 @@ vessel_entity::vessel_entity(const dpoint_entity &harbor, unsigned int capacity)
this->_id = ++vessel_entity::__global_id;
}
entity_id vessel_entity::id() {
entity_id vessel_entity::id() const {
return this->_id;
}
const dpoint_entity vessel_entity::harbor() {
const dpoint_entity vessel_entity::harbor() const {
return this->_harbor;
}
unsigned int vessel_entity::capacity() {
unsigned int vessel_entity::capacity() const {
return this->_capacity;
}