Urlance Woolsbane
Chieftain
- Joined
- Nov 30, 2021
- Messages
- 52
Civ V's source-code seems to deviate from standard Hungarian notation by not using the prefix 'k' for constant; rather, it seems to denote addresses, e.g. "CvGame& kGame = GC.getGame();". Further muddying the water is the existence of variables with the 'pk' prefix, e.g. "vUnit* pkUnit = kPlayer.getUnit(iUnitID);"; 'p' is pointer, obviously, but it's not clear to me how they differ from normal pointers. Does anyone know what 'k' stands for or what 'pk' specifically denotes? Am I missing something obvious?