decks.cc File Reference

#include "AppHdr.h"
#include "decks.h"
#include <iostream>
#include <algorithm>
#include "externs.h"
#include "acquire.h"
#include "beam.h"
#include "cio.h"
#include "coordit.h"
#include "database.h"
#include "dgn-actions.h"
#include "dungeon.h"
#include "effects.h"
#include "env.h"
#include "files.h"
#include "food.h"
#include "ghost.h"
#include "godwrath.h"
#include "invent.h"
#include "it_use2.h"
#include "item_use.h"
#include "itemprop.h"
#include "items.h"
#include "makeitem.h"
#include "maps.h"
#include "message.h"
#include "misc.h"
#include "mon-iter.h"
#include "mon-place.h"
#include "mon-util.h"
#include "mgen_data.h"
#include "coord.h"
#include "mon-stuff.h"
#include "mutation.h"
#include "options.h"
#include "ouch.h"
#include "player.h"
#include "player-stats.h"
#include "religion.h"
#include "godconduct.h"
#include "skills2.h"
#include "spl-cast.h"
#include "spl-damage.h"
#include "spl-goditem.h"
#include "spl-miscast.h"
#include "spl-other.h"
#include "spl-selfench.h"
#include "spl-summoning.h"
#include "spl-transloc.h"
#include "spl-util.h"
#include "spl-wpnench.h"
#include "state.h"
#include "stuff.h"
#include "terrain.h"
#include "transform.h"
#include "traps.h"
#include "view.h"
#include "xom.h"

Classes

struct  card_with_weights

Defines

#define END_OF_DECK   {NUM_CARDS, {0,0,0}}

Typedefs

typedef card_with_weights deck_archetype

Functions

int cards_in_deck (const item_def &deck)
card_type get_card_and_flags (const item_def &deck, int idx, uint8_t &_flags)
const char * card_name (card_type card)
const std::vector< card_typeget_drawn_cards (const item_def &deck)
bool choose_deck_and_draw ()
bool deck_peek ()
bool deck_mark ()
bool deck_stack ()
bool deck_triple_draw ()
void draw_from_deck_of_punishment ()
void evoke_deck (item_def &deck)
int get_power_level (int power, deck_rarity_type rarity)
void sage_card (int power, deck_rarity_type rarity)
void create_pond (const coord_def &center, int radius, bool allow_deep)
bool card_effect (card_type which_card, deck_rarity_type rarity, uint8_t flags, bool tell_card)
bool top_card_is_known (const item_def &deck)
card_type top_card (const item_def &deck)
bool is_deck (const item_def &item)
bool bad_deck (const item_def &item)
deck_rarity_type deck_rarity (const item_def &item)
uint8_t deck_rarity_to_color (deck_rarity_type rarity)
void init_deck (item_def &item)
void shuffle_all_decks_on_level ()
void nemelex_shuffle_decks ()

Variables

const deck_archetype deck_of_transport []
const deck_archetype deck_of_emergency []
const deck_archetype deck_of_destruction []
const deck_archetype deck_of_battle []
const deck_archetype deck_of_enchantments []
const deck_archetype deck_of_summoning []
const deck_archetype deck_of_wonders []
const deck_archetype deck_of_dungeons []
const deck_archetype deck_of_oddities []
const deck_archetype deck_of_punishment []

Define Documentation

#define END_OF_DECK   {NUM_CARDS, {0,0,0}}


Typedef Documentation


Function Documentation

bool bad_deck ( const item_def item  ) 

Here is the call graph for this function:

bool card_effect ( card_type  which_card,
deck_rarity_type  rarity,
uint8_t  flags,
bool  tell_card 
)

Here is the call graph for this function:

const char* card_name ( card_type  card  ) 

int cards_in_deck ( const item_def deck  ) 

Here is the call graph for this function:

bool choose_deck_and_draw (  ) 

Here is the call graph for this function:

void create_pond ( const coord_def center,
int  radius,
bool  allow_deep 
)

Here is the call graph for this function:

bool deck_mark (  ) 

Here is the call graph for this function:

bool deck_peek (  ) 

Here is the call graph for this function:

deck_rarity_type deck_rarity ( const item_def item  ) 

Here is the call graph for this function:

uint8_t deck_rarity_to_color ( deck_rarity_type  rarity  ) 

Here is the call graph for this function:

bool deck_stack (  ) 

Here is the call graph for this function:

bool deck_triple_draw (  ) 

Here is the call graph for this function:

void draw_from_deck_of_punishment (  ) 

Here is the call graph for this function:

void evoke_deck ( item_def deck  ) 

Here is the call graph for this function:

card_type get_card_and_flags ( const item_def deck,
int  idx,
uint8_t &  _flags 
)

Here is the call graph for this function:

const std::vector<card_type> get_drawn_cards ( const item_def deck  ) 

Here is the call graph for this function:

int get_power_level ( int  power,
deck_rarity_type  rarity 
)

Here is the call graph for this function:

void init_deck ( item_def item  ) 

Here is the call graph for this function:

bool is_deck ( const item_def item  ) 

void nemelex_shuffle_decks (  ) 

Here is the call graph for this function:

void sage_card ( int  power,
deck_rarity_type  rarity 
)

Here is the call graph for this function:

void shuffle_all_decks_on_level (  ) 

Here is the call graph for this function:

card_type top_card ( const item_def deck  ) 

Here is the call graph for this function:

bool top_card_is_known ( const item_def deck  ) 

Here is the call graph for this function:


Variable Documentation

Initial value:

 {
    { CARD_ELIXIR,        {5, 5, 5} },
    { CARD_BATTLELUST,    {5, 5, 5} },
    { CARD_METAMORPHOSIS, {5, 5, 5} },
    { CARD_HELM,          {5, 5, 5} },
    { CARD_BLADE,         {5, 5, 5} },
    { CARD_SHADOW,        {5, 5, 5} },
    END_OF_DECK
}

Initial value:

 {
    { CARD_VITRIOL, {5, 5, 5} },
    { CARD_FLAME,   {5, 5, 5} },
    { CARD_FROST,   {5, 5, 5} },
    { CARD_VENOM,   {5, 5, 5} },
    { CARD_HAMMER,  {5, 5, 5} },
    { CARD_SPARK,   {5, 5, 5} },
    { CARD_PAIN,    {5, 5, 5} },
    { CARD_TORMENT, {1, 3, 5} },
    END_OF_DECK
}

Initial value:

 {
    { CARD_WATER,     {5, 5, 5} },
    { CARD_GLASS,     {5, 5, 5} },
    { CARD_MAP,       {5, 5, 5} },
    { CARD_DOWSING,   {5, 5, 5} },
    { CARD_SPADE,     {5, 5, 5} },
    { CARD_TROWEL,    {5, 5, 5} },
    { CARD_MINEFIELD, {5, 5, 5} },
    END_OF_DECK
}

Initial value:

 {
    { CARD_TOMB,       {5, 5, 5} },
    { CARD_BANSHEE,    {5, 5, 5} },
    { CARD_DAMNATION,  {0, 1, 2} },
    { CARD_SOLITUDE,   {5, 5, 5} },
    { CARD_WARPWRIGHT, {5, 5, 5} },
    { CARD_FLIGHT,     {5, 5, 5} },
    END_OF_DECK
}

Initial value:

 {
    { CARD_ELIXIR, {5, 5, 5} },
    END_OF_DECK
}

Initial value:

 {
    { CARD_GENIE,   {5, 5, 5} },
    { CARD_BARGAIN, {5, 5, 5} },
    { CARD_WRATH,   {5, 5, 5} },
    { CARD_XOM,     {5, 5, 5} },
    { CARD_FEAST,   {5, 5, 5} },
    { CARD_FAMINE,  {5, 5, 5} },
    { CARD_CURSE,   {5, 5, 5} },
    END_OF_DECK
}

Initial value:

 {
    { CARD_WRAITH,     {5, 5, 5} },
    { CARD_WILD_MAGIC, {5, 5, 5} },
    { CARD_WRATH,      {5, 5, 5} },
    { CARD_XOM,        {5, 5, 5} },
    { CARD_FAMINE,     {5, 5, 5} },
    { CARD_CURSE,      {5, 5, 5} },
    { CARD_TOMB,       {5, 5, 5} },
    { CARD_DAMNATION,  {5, 5, 5} },
    { CARD_PORTAL,     {5, 5, 5} },
    { CARD_MINEFIELD,  {5, 5, 5} },
    { CARD_SWINE,      {5, 5, 5} },
    END_OF_DECK
}

Initial value:

 {
    { CARD_CRUSADE,         {5, 5, 5} },
    { CARD_SUMMON_ANIMAL,   {5, 5, 5} },
    { CARD_SUMMON_DEMON,    {5, 5, 5} },
    { CARD_SUMMON_WEAPON,   {5, 5, 5} },
    { CARD_SUMMON_FLYING,   {5, 5, 5} },
    { CARD_SUMMON_SKELETON, {5, 5, 5} },
    { CARD_SUMMON_UGLY,     {5, 5, 5} },
    END_OF_DECK
}

Initial value:

 {
    { CARD_PORTAL,   {5, 5, 5} },
    { CARD_WARP,     {5, 5, 5} },
    { CARD_SWAP,     {5, 5, 5} },
    { CARD_VELOCITY, {5, 5, 5} },
    END_OF_DECK
}

Initial value:

 {
    { CARD_POTION,     {5, 5, 5} },
    { CARD_FOCUS,      {1, 1, 2} },
    { CARD_SHUFFLE,    {0, 1, 2} },
    { CARD_EXPERIENCE, {5, 5, 5} },
    { CARD_WILD_MAGIC, {5, 5, 5} },
    { CARD_HELIX,      {5, 5, 5} },
    { CARD_SAGE,       {5, 5, 5} },
    END_OF_DECK
}


Generated on Thu Jan 13 13:03:58 2011 by  doxygen 1.5.6