|
|
|
|
|
|
|
|
|
|
|
|
but i really cant figure out whats going on in the class with the pointers. |
bool *PLR_INVENTORY
|
|
bool *plr_inventory;
Giblit wrote: |
---|
Well he might get more items later on... |
CH1156 wrote: |
---|
...the bool array isa fixed size ... |
ok sorry so ok here i have bool *PLR_INVENTORY in the constructor. I also have it again in the constructor in the class Player(int MONEY, std::string NAME, int EXPERIENCE, int ACCOUNTSHACKED, int PASSWORDCRACKERLVL, int DECRYPTIONTOOLLVL, int PASSWORDCRACKERPRICE, int DECRYPTIONTOOLPRICE, bool *PLR_INVENTORY ); why is that? and lastly why is it created again here in private bool *plr_inventory; from my POV it seems as though its creating the nitial pointer in all of these 3 spots but i know i must be wrong, please explain. |