Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old July 27, 2009, 22:45   #1
Kyle
Rookie
 
Kyle's Avatar
 
Join Date: Jul 2009
Posts: 15
Kyle is on a distinguished road
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!
Kyle is offline   Reply With Quote
Old July 27, 2009, 23:30   #2
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,947
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Kyle View Post
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.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
p_ptr->command_cmd PaulBlay Development 5 April 22, 2009 04:24


All times are GMT +1. The time now is 00:23.


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