blob: 47c6d646ac40cdea59efcac386250d686912d6f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* File: decks.cc
* Summary: Functions with decks of cards.
*
* Modified for Crawl Reference by $Author$ on $Date$
*
* Change History (most recent first):
*
* <1> -/--/-- LRH Created
*/
#ifndef DECKS_H
#define DECKS_H
#include "enum.h"
#include "externs.h"
enum deck_rarity_type
{
DECK_RARITY_COMMON,
DECK_RARITY_RARE,
DECK_RARITY_LEGENDARY
};
enum deck_type
{
// pure decks
DECK_OF_ESCAPE,
DECK_OF_DESTRUCTION,
DECK_OF_DUNGEONS,
DECK_OF_SUMMONING,
DECK_OF_WONDERS
};
const char* card_name(card_type card);
void evoke_deck(item_def& deck);
bool deck_triple_draw();
bool deck_peek();
bool deck_stack();
bool choose_deck_and_draw();
void card_effect(card_type which_card, deck_rarity_type rarity);
void draw_from_deck_of_punishment();
bool is_deck(const item_def &item);
deck_rarity_type deck_rarity(const item_def &item);
unsigned char deck_rarity_to_color(deck_rarity_type rarity);
#endif
|