acquire.cc File Reference

#include "AppHdr.h"
#include "acquire.h"
#include <cstdlib>
#include <string.h>
#include <stdio.h>
#include <algorithm>
#include <queue>
#include <set>
#include <cmath>
#include "artefact.h"
#include "decks.h"
#include "dungeon.h"
#include "externs.h"
#include "food.h"
#include "itemname.h"
#include "itemprop.h"
#include "items.h"
#include "item_use.h"
#include "makeitem.h"
#include "message.h"
#include "misc.h"
#include "player.h"
#include "random.h"
#include "religion.h"
#include "skills2.h"
#include "spl-book.h"
#include "spl-util.h"
#include "state.h"
#include "stuff.h"

Include dependency graph for acquire.cc:


Defines

#define TRY_GIVE(x)   { if (!already_has[x]) result = x; }
#define MAX_ACQ_TRIES   40

Typedefs

typedef FixedVector< int,
max_has_value > 
has_vector

Functions

int acquirement_create_item (object_class_type class_wanted, int agent, bool quiet, const coord_def &pos, bool debug)
bool acquirement (object_class_type class_wanted, int agent, bool quiet, int *item_index, bool debug)

Define Documentation

#define MAX_ACQ_TRIES   40

#define TRY_GIVE (  )     { if (!already_has[x]) result = x; }


Typedef Documentation

typedef FixedVector<int, max_has_value> has_vector


Function Documentation

bool acquirement ( object_class_type  class_wanted,
int  agent,
bool  quiet,
int *  item_index,
bool  debug 
)

Here is the call graph for this function:

int acquirement_create_item ( object_class_type  class_wanted,
int  agent,
bool  quiet,
const coord_def pos,
bool  debug 
)

Here is the call graph for this function:


Generated on Thu Jan 13 13:02:52 2011 by  doxygen 1.5.6