Hello ppl!
I always wanted to know but couldn't figure out what is the difference between pUnit and Unit or player and pPlayer tags. Can anyone explain it please?
bendaferi
Hello ppl!
I always wanted to know but couldn't figure out what is the difference between pUnit and Unit or player and pPlayer tags. Can anyone explain it please?
bendaferi
Player and Unit are the names of the classes, whereas pPlayer and pUnit are often-used names for pointers to instances of these classes. You don't have to use pPlayer but it sure helps you if you stick to this convention.
Code:Player *pPlayer = new Player();