MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / addEntityToPositionTile

Method addEntityToPositionTile

source/entities/TreasuryObject.cpp:174–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174void TreasuryObject::addEntityToPositionTile()
175{
176 if(getIsOnMap())
177 return;
178
179 setIsOnMap(true);
180 Tile* tile = getPositionTile();
181 if(tile == nullptr)
182 {
183 OD_LOG_ERR(getGameMap()->serverStr() + "entityName=" + getName() + ", pos=" + Helper::toString(getPosition()));
184 return;
185 }
186 OD_ASSERT_TRUE_MSG(tile->addTreasuryObject(this), getGameMap()->serverStr() + "entity=" + getName() + ", pos=" + Helper::toString(getPosition()) + ", tile=" + Tile::displayAsString(tile));
187}
188
189EntityCarryType TreasuryObject::getEntityCarryType(Creature* carrier)
190{

Callers

nothing calls this directly

Calls 3

serverStrMethod · 0.80
addTreasuryObjectMethod · 0.80
toStringFunction · 0.50

Tested by

no test coverage detected