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

Method getPositionTile

source/entities/GameEntity.cpp:115–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115Tile* GameEntity::getPositionTile() const
116{
117 const Ogre::Vector3& tempPosition = getPosition();
118
119 return getGameMap()->getTile(Helper::round(tempPosition.x),
120 Helper::round(tempPosition.y));
121}
122
123void GameEntity::addEntityToPositionTile()
124{

Callers 15

castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
handleCarryEntityMethod · 0.80
handleSearchFoodMethod · 0.80
handleFightMethod · 0.80
handleSearchJobMethod · 0.80
handleClaimWallTileMethod · 0.80

Calls 2

roundFunction · 0.85
getTileMethod · 0.45

Tested by

no test coverage detected