mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Basic version of hero movement on map. Removed old code.
This commit is contained in:
@ -147,17 +147,17 @@ bool MapRendererContext::isInMap(const int3 & coordinates) const
|
||||
|
||||
const TerrainTile & MapRendererContext::getMapTile(const int3 & coordinates) const
|
||||
{
|
||||
return CGI->mh->map->getTile(coordinates);
|
||||
return CGI->mh->getMap()->getTile(coordinates);
|
||||
}
|
||||
|
||||
MapRendererContext::ObjectsVector MapRendererContext::getAllObjects() const
|
||||
{
|
||||
return CGI->mh->map->objects;
|
||||
return CGI->mh->getMap()->objects;
|
||||
}
|
||||
|
||||
const CGObjectInstance * MapRendererContext::getObject(ObjectInstanceID objectID) const
|
||||
{
|
||||
return CGI->mh->map->objects.at(objectID.getNum());
|
||||
return CGI->mh->getMap()->objects.at(objectID.getNum());
|
||||
}
|
||||
|
||||
bool MapRendererContext::isVisible(const int3 & coordinates) const
|
||||
|
Reference in New Issue
Block a user