ThorHammerz
zzz
- Joined
- Jul 31, 2014
- Messages
- 836
Is there any meaningful difference between these? My impression is that the UnitHandle is some sort of pseudo-pointer as it can access the same attributes/functions of the CvUnit class that a CvUnit* pointer is able to access.
Code:
CvUnit* pUnit = pPlot->getVisibleEnemyDefender(pPlayer)
UnitHandle hUnit = pPlot->getBestDefender(pPlayer)