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

Method tileFromPacket

source/gamemap/TileContainer.cpp:422–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422Tile* TileContainer::tileFromPacket(ODPacket& packet) const
423{
424 int32_t x;
425 int32_t y;
426 OD_ASSERT_TRUE(packet >> x >> y);
427 Tile* tile = getTile(x, y);
428 if(tile == nullptr)
429 {
430 OD_LOG_ERR("tile=" + Helper::toString(x) + "," + Helper::toString(y));
431 }
432 return tile;
433}
434
435bool TileContainer::allocateMapMemory(int xSize, int ySize)
436{

Callers 15

castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
importFromPacketMethod · 0.80
processMessageMethod · 0.80
buildTrapMethod · 0.80
buildTrapEditorMethod · 0.80
getTrapTilesDefaultMethod · 0.80
sellTrapTilesMethod · 0.80
sellTrapTilesEditorMethod · 0.80

Calls 1

toStringFunction · 0.50

Tested by

no test coverage detected