#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"
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 MAX_ACQ_TRIES 40 |
#define TRY_GIVE | ( | x | ) | { if (!already_has[x]) result = x; } |
typedef FixedVector<int, max_has_value> has_vector |
bool acquirement | ( | object_class_type | class_wanted, | |
int | agent, | |||
bool | quiet, | |||
int * | item_index, | |||
bool | debug | |||
) |
int acquirement_create_item | ( | object_class_type | class_wanted, | |
int | agent, | |||
bool | quiet, | |||
const coord_def & | pos, | |||
bool | debug | |||
) |