Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Development (http://angband.oook.cz/forum/forumdisplay.php?f=10)
-   -   Question about p_ptr (http://angband.oook.cz/forum/showthread.php?t=2132)

Kyle July 27, 2009 22:45

Question about p_ptr
 
I'm really new to this code but I think I want to get into development on this project; so I'm trying to learn my way around.

It seems clear that p_ptr is a global pointer to the player's structure, but I can't find where it is declared. When I search for it I get a million hits of course because it is used everywhere in the code.

What file is (it)/(its type) defined in?

Thanks!

takkaria July 27, 2009 23:30

Quote:

Originally Posted by Kyle (Post 22052)
I'm really new to this code but I think I want to get into development on this project; so I'm trying to learn my way around.

It seems clear that p_ptr is a global pointer to the player's structure, but I can't find where it is declared. When I search for it I get a million hits of course because it is used everywhere in the code.

What file is (it)/(its type) defined in?

Thanks!

variable.c has the lots of the game-wide globals; the type itself is defined in player/types.h.


All times are GMT +1. The time now is 04:51.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.